clock->now(); if (null !== $cronJobExecution && $now->sub(new \DateInterval('P1D')) < $cronJobExecution->getLastStart()) { return false; } return in_array((int) $now->format('H'), [1, 2, 3, 4, 5, 6], true); } public function getKey(): string { return 'accompanying-period-step-change'; } public function run(array $lastExecutionData): null|array { ($this->requestor)(); return null; } }