-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cf774b7
Showing
85 changed files
with
4,438 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
<?php | ||
/** | ||
* Copyright © ismail cakir All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Kodhub\Reporter\Api\Data; | ||
|
||
interface LogInterface extends \Magento\Framework\Api\ExtensibleDataInterface | ||
{ | ||
|
||
const TITLE = 'title'; | ||
const CRON_IS_RUN = 'cron_is_run'; | ||
const LAST_RUN_DATE = 'last_run_date'; | ||
const ERROR = 'error'; | ||
const SENT_LIST = 'sent_list'; | ||
const TRACE = 'trace'; | ||
const LOG_ID = 'log_id'; | ||
const WORK_TIME = 'work_time'; | ||
const ENDED_AT = 'ended_at'; | ||
const STARTED_AT = 'started_at'; | ||
const MESSAGE = 'message'; | ||
const QUERY = 'query'; | ||
|
||
/** | ||
* Get log_id | ||
* @return string|null | ||
*/ | ||
public function getLogId(); | ||
|
||
/** | ||
* Set log_id | ||
* @param string $logId | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setLogId($logId); | ||
|
||
/** | ||
* Get title | ||
* @return string|null | ||
*/ | ||
public function getTitle(); | ||
|
||
/** | ||
* Set title | ||
* @param string $title | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setTitle($title); | ||
|
||
/** | ||
* Retrieve existing extension attributes object or create a new one. | ||
* @return \Kodhub\Reporter\Api\Data\LogExtensionInterface|null | ||
*/ | ||
public function getExtensionAttributes(); | ||
|
||
/** | ||
* Set an extension attributes object. | ||
* @param \Kodhub\Reporter\Api\Data\LogExtensionInterface $extensionAttributes | ||
* @return $this | ||
*/ | ||
public function setExtensionAttributes( | ||
\Kodhub\Reporter\Api\Data\LogExtensionInterface $extensionAttributes | ||
); | ||
|
||
/** | ||
* Get message | ||
* @return string|null | ||
*/ | ||
public function getMessage(); | ||
|
||
/** | ||
* Set message | ||
* @param string $message | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setMessage($message); | ||
|
||
/** | ||
* Get error | ||
* @return string|null | ||
*/ | ||
public function getError(); | ||
|
||
/** | ||
* Set error | ||
* @param string $error | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setError($error); | ||
|
||
/** | ||
* Get trace | ||
* @return string|null | ||
*/ | ||
public function getTrace(); | ||
|
||
/** | ||
* Set trace | ||
* @param string $trace | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setTrace($trace); | ||
|
||
/** | ||
* Get query | ||
* @return string|null | ||
*/ | ||
public function getQuery(); | ||
|
||
/** | ||
* Set query | ||
* @param string $query | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setQuery($query); | ||
|
||
/** | ||
* Get sent_list | ||
* @return string|null | ||
*/ | ||
public function getSentList(); | ||
|
||
/** | ||
* Set sent_list | ||
* @param string $sentList | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setSentList($sentList); | ||
|
||
/** | ||
* Get cron_is_run | ||
* @return string|null | ||
*/ | ||
public function getCronIsRun(); | ||
|
||
/** | ||
* Set cron_is_run | ||
* @param string $cronIsRun | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setCronIsRun($cronIsRun); | ||
|
||
/** | ||
* Get last_run_date | ||
* @return string|null | ||
*/ | ||
public function getLastRunDate(); | ||
|
||
/** | ||
* Set last_run_date | ||
* @param string $lastRunDate | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setLastRunDate($lastRunDate); | ||
|
||
/** | ||
* Get work_time | ||
* @return string|null | ||
*/ | ||
public function getWorkTime(); | ||
|
||
/** | ||
* Set work_time | ||
* @param string $workTime | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setWorkTime($workTime); | ||
|
||
/** | ||
* Get started_at | ||
* @return string|null | ||
*/ | ||
public function getStartedAt(); | ||
|
||
/** | ||
* Set started_at | ||
* @param string $startedAt | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setStartedAt($startedAt); | ||
|
||
/** | ||
* Get ended_at | ||
* @return string|null | ||
*/ | ||
public function getEndedAt(); | ||
|
||
/** | ||
* Set ended_at | ||
* @param string $endedAt | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface | ||
*/ | ||
public function setEndedAt($endedAt); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/** | ||
* Copyright © ismail cakir All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Kodhub\Reporter\Api\Data; | ||
|
||
interface LogSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface | ||
{ | ||
|
||
/** | ||
* Get Log list. | ||
* @return \Kodhub\Reporter\Api\Data\LogInterface[] | ||
*/ | ||
public function getItems(); | ||
|
||
/** | ||
* Set title list. | ||
* @param \Kodhub\Reporter\Api\Data\LogInterface[] $items | ||
* @return $this | ||
*/ | ||
public function setItems(array $items); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
<?php | ||
/** | ||
* Copyright © ismail cakir All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Kodhub\Reporter\Api\Data; | ||
|
||
interface ReportInterface extends \Magento\Framework\Api\ExtensibleDataInterface | ||
{ | ||
|
||
const UPDATED_AT = 'updated_at'; | ||
const DESCRIPTION = 'description'; | ||
const CRON_EXPRESSION = 'cron_expression'; | ||
const CREATED_AT = 'created_at'; | ||
const CRON_STATUS = 'cron_status'; | ||
const REPORT_ID = 'report_id'; | ||
const NAME = 'name'; | ||
const STATUS = 'status'; | ||
const QUERY = 'query'; | ||
const CRON_EMAIL_LIST = 'cron_email_list'; | ||
|
||
/** | ||
* Get report_id | ||
* @return string|null | ||
*/ | ||
public function getReportId(); | ||
|
||
/** | ||
* Set report_id | ||
* @param string $reportId | ||
* @return \Kodhub\Reporter\Api\Data\ReportInterface | ||
*/ | ||
public function setReportId($reportId); | ||
|
||
/** | ||
* Get name | ||
* @return string|null | ||
*/ | ||
public function getName(); | ||
|
||
/** | ||
* Set name | ||
* @param string $name | ||
* @return \Kodhub\Reporter\Api\Data\ReportInterface | ||
*/ | ||
public function setName($name); | ||
|
||
/** | ||
* Retrieve existing extension attributes object or create a new one. | ||
* @return \Kodhub\Reporter\Api\Data\ReportExtensionInterface|null | ||
*/ | ||
public function getExtensionAttributes(); | ||
|
||
/** | ||
* Set an extension attributes object. | ||
* @param \Kodhub\Reporter\Api\Data\ReportExtensionInterface $extensionAttributes | ||
* @return $this | ||
*/ | ||
public function setExtensionAttributes( | ||
\Kodhub\Reporter\Api\Data\ReportExtensionInterface $extensionAttributes | ||
); | ||
|
||
/** | ||
* Get query | ||
* @return string|null | ||
*/ | ||
public function getQuery(); | ||
|
||
/** | ||
* Set query | ||
* @param string $query | ||
* @return \Kodhub\Reporter\Api\Data\ReportInterface | ||
*/ | ||
public function setQuery($query); | ||
|
||
/** | ||
* Get cron_status | ||
* @return string|null | ||
*/ | ||
public function getCronStatus(); | ||
|
||
/** | ||
* Set cron_status | ||
* @param string $cronStatus | ||
* @return \Kodhub\Reporter\Api\Data\ReportInterface | ||
*/ | ||
public function setCronStatus($cronStatus); | ||
|
||
/** | ||
* Get cron_email_list | ||
* @return string|null | ||
*/ | ||
public function getCronEmailList(); | ||
|
||
/** | ||
* Set cron_email_list | ||
* @param string $cronEmailList | ||
* @return \Kodhub\Reporter\Api\Data\ReportInterface | ||
*/ | ||
public function setCronEmailList($cronEmailList); | ||
|
||
/** | ||
* Get cron_expression | ||
* @return string|null | ||
*/ | ||
public function getCronExpression(); | ||
|
||
/** | ||
* Set cron_expression | ||
* @param string $cronExpression | ||
* @return \Kodhub\Reporter\Api\Data\ReportInterface | ||
*/ | ||
public function setCronExpression($cronExpression); | ||
|
||
/** | ||
* Get description | ||
* @return string|null | ||
*/ | ||
public function getDescription(); | ||
|
||
/** | ||
* Set description | ||
* @param string $description | ||
* @return \Kodhub\Reporter\Api\Data\ReportInterface | ||
*/ | ||
public function setDescription($description); | ||
|
||
/** | ||
* Get status | ||
* @return string|null | ||
*/ | ||
public function getStatus(); | ||
|
||
/** | ||
* Set status | ||
* @param string $status | ||
* @return \Kodhub\Reporter\Api\Data\ReportInterface | ||
*/ | ||
public function setStatus($status); | ||
|
||
/** | ||
* Get created_at | ||
* @return string|null | ||
*/ | ||
public function getCreatedAt(); | ||
|
||
/** | ||
* Set created_at | ||
* @param string $createdAt | ||
* @return \Kodhub\Reporter\Api\Data\ReportInterface | ||
*/ | ||
public function setCreatedAt($createdAt); | ||
|
||
/** | ||
* Get updated_at | ||
* @return string|null | ||
*/ | ||
public function getUpdatedAt(); | ||
|
||
/** | ||
* Set updated_at | ||
* @param string $updatedAt | ||
* @return \Kodhub\Reporter\Api\Data\ReportInterface | ||
*/ | ||
public function setUpdatedAt($updatedAt); | ||
} | ||
|
Oops, something went wrong.