| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class ScheduleRunCommand extends Command |
||
| 17 | { |
||
| 18 | protected static $defaultName = 'schedule:run'; |
||
| 19 | |||
| 20 | private $scheduleRunner; |
||
| 21 | private $dispatcher; |
||
| 22 | |||
| 23 | 9 | public function __construct(ScheduleRunner $scheduleRunner, EventDispatcherInterface $dispatcher) |
|
| 29 | 9 | } |
|
| 30 | |||
| 31 | 9 | protected function configure(): void |
|
| 36 | 9 | Exit code 0: no tasks ran, schedule skipped or all tasks run were successful. |
|
| 37 | Exit code 1: some of the tasks ran failed. |
||
| 38 | EOF |
||
| 39 | ) |
||
| 40 | ; |
||
| 41 | 9 | } |
|
| 42 | |||
| 43 | 9 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
| 52 |