clock->now(); if ($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(): void { ($this->requestor)(); } }