| Total Complexity | 5 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class SecurityAlertCheckJob extends AbstractQueuedJob implements QueuedJob |
||
| 16 | { |
||
| 17 | private static $dependencies = [ |
||
|
|
|||
| 18 | 'checkTask' => '%$' . SecurityAlertCheckTask::class, |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var SecurityAlertCheckTask |
||
| 23 | */ |
||
| 24 | protected $checkTask; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return SecurityAlertCheckTask |
||
| 28 | */ |
||
| 29 | public function getCheckTask() |
||
| 30 | { |
||
| 31 | return $this->checkTask; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param SecurityAlertCheckTask $checkTask |
||
| 36 | * @return SecurityAlertCheckJob |
||
| 37 | */ |
||
| 38 | public function setCheckTask(SecurityAlertCheckTask $checkTask) |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getTitle() |
||
| 45 | { |
||
| 46 | return _t( |
||
| 47 | __CLASS__ . '.Title', |
||
| 48 | 'Check if any composer managed modules have known security vulnerabilities.' |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 52 | public function getJobType() |
||
| 53 | { |
||
| 54 | $this->totalSteps = 1; |
||
| 55 | |||
| 56 | return QueuedJob::QUEUED; |
||
| 57 | } |
||
| 58 | |||
| 59 | public function process() |
||
| 67 | } |
||
| 68 | } |
||
| 69 |