Skip to content

Commit

Permalink
added stubs of Job and ServiceJob Entities
Browse files Browse the repository at this point in the history
  • Loading branch information
awasiak committed Oct 5, 2018
1 parent 0d15be4 commit 52a87e2
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 0 deletions.
49 changes: 49 additions & 0 deletions src/SAREhub/Servitiom/Entity/Job/Job.php
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;
}
52 changes: 52 additions & 0 deletions src/SAREhub/Servitiom/Entity/Service/ServiceJob.php
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;
}

0 comments on commit 52a87e2

Please sign in to comment.