Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class CheckForUpdatesJob extends AbstractQueuedJob implements QueuedJob |
||
15 | { |
||
16 | /** |
||
17 | * Define the title |
||
18 | * |
||
19 | * @return string |
||
20 | */ |
||
21 | public function getTitle() |
||
22 | { |
||
23 | return _t( |
||
24 | 'CheckForUpdates.TITLE', |
||
25 | 'Check for updates' |
||
26 | ); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Define the type. |
||
31 | */ |
||
32 | public function getJobType() |
||
33 | { |
||
34 | $this->totalSteps = 1; |
||
35 | return QueuedJob::QUEUED; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Create the instance of the task |
||
40 | */ |
||
41 | public function setup() |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Processes the task as a job |
||
48 | */ |
||
49 | public function process() |
||
59 |