-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added stubs of Job and ServiceJob Entities
- Loading branch information
awasiak
committed
Oct 5, 2018
1 parent
0d15be4
commit 52a87e2
Showing
2 changed files
with
101 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,49 @@ | ||
<?php | ||
/** | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
namespace Servitiom\Entity\Job; | ||
|
||
|
||
class Job | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
private $payload; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $priority; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $queue; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $createdAt; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $ttr; | ||
|
||
private $state; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $internalJobId; | ||
} |
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,52 @@ | ||
<?php | ||
/** | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
namespace Servitiom\Entity\Service; | ||
|
||
|
||
use SAREhub\Servitiom\Entity\Service\ServiceJobTemplate; | ||
use Servitiom\Entity\Job\Job; | ||
|
||
class ServiceJob | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @var ServiceJobTemplate | ||
*/ | ||
private $templateId; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
private $parameters; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $createdAt; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $updatedAt; | ||
|
||
private $state; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $currentTaskId; | ||
|
||
/** | ||
* @var Job | ||
*/ | ||
private $currentTaskJob; | ||
} |