| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ProcessNextScheduleCommand extends Command |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var CommandScheduleProcessor |
||
| 15 | */ |
||
| 16 | private $commandScheduleProcessor; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param CommandScheduleProcessor $commandScheduleProcessor |
||
| 20 | */ |
||
| 21 | public function __construct(CommandScheduleProcessor $commandScheduleProcessor) |
||
| 22 | { |
||
| 23 | parent::__construct(); |
||
| 24 | |||
| 25 | $this->commandScheduleProcessor = $commandScheduleProcessor; |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function configure() |
||
| 29 | { |
||
| 30 | $this->setName('command-scheduler:process-next-schedule') |
||
| 31 | ->setDescription('Processes the next pending schedule'); |
||
| 32 | } |
||
| 33 | |||
| 34 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 39 | } |
||
| 40 | } |
||
| 41 |