| 1 | <?php |
||
| 8 | use BringYourOwnIdeas\UpdateChecker\Tasks\CheckComposerUpdatesTask; |
||
| 9 | use SilverStripe\Control\HTTPRequest; |
||
| 10 | use Symbiote\QueuedJobs\Services\AbstractQueuedJob; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Composer update checker job. Runs the check as a queuedjob. |
||
| 14 | * |
||
| 15 | * @author Peter Thaleikis |
||
| 16 | * @license MIT |
||
| 17 | */ |
||
| 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() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * define the type. |
||
| 42 | */ |
||
| 43 | public function getJobType() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * init |
||
| 52 | */ |
||
| 53 | public function setup() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * processes the task as a job |
||
| 61 | */ |
||
| 71 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.