| 1 | <?php |
||
| 8 | class CommandScheduler implements JobScheduler |
||
| 9 | { |
||
| 10 | private $name; |
||
| 11 | private $command; |
||
| 12 | |||
| 13 | 2 | public function __construct(string $name, CronCommand $command) |
|
| 18 | |||
| 19 | public function getCommands(): array |
||
| 23 | |||
| 24 | 2 | public function shouldSchedule(string $_, \DateTime $lastRunAt): bool |
|
| 28 | |||
| 29 | 2 | public function createJob(string $_, \DateTime $lastRunAt): Job |
|
| 33 | } |