| Total Complexity | 4 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class CheckComposerUpdatesJob extends AbstractQueuedJob implements QueuedJob |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * The task to run |
||
| 22 | * |
||
| 23 | * @var BuildTask |
||
| 24 | */ |
||
| 25 | protected $task; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * define the title |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getTitle() |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * define the type. |
||
| 42 | */ |
||
| 43 | public function getJobType() |
||
| 44 | { |
||
| 45 | $this->totalSteps = 1; |
||
| 46 | |||
| 47 | return QueuedJob::QUEUED; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * init |
||
| 52 | */ |
||
| 53 | public function setup() |
||
| 54 | { |
||
| 55 | // create the instance of the task |
||
| 56 | $this->task = Injector::inst()->create(CheckComposerUpdatesTask::class); |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * processes the task as a job |
||
| 61 | */ |
||
| 62 | public function process() |
||
| 69 | } |
||
| 70 | } |
||
| 71 |