reEngagementEmailsScheduler = $reEngagementEmailsScheduler; } public function processTaskStrategy(ScheduledTaskEntity $task, $timer) { $this->reEngagementEmailsScheduler->scheduleAll(); return true; } public function getNextRunDate() { return Carbon::createFromTimestamp($this->wp->currentTime('timestamp'))->addDay(); } }