| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | class NotificationCron extends TimedJob { |
||
| 31 | |||
| 32 | /** @var MailService */ |
||
| 33 | private $mailService; |
||
| 34 | |||
| 35 | public function __construct( |
||
| 36 | ITimeFactory $time, |
||
| 37 | MailService $mailService |
||
| 38 | ) { |
||
| 39 | parent::__construct($time); |
||
| 40 | $this->mailService = $mailService; |
||
| 41 | parent::setInterval(5); // run every 5 minutes |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return void |
||
| 46 | */ |
||
| 47 | protected function run($arguments) { |
||
| 49 | } |
||
| 50 | } |
||
| 51 |