Refactor SimpleWorker::proccessTaskStrategy() to use Doctrine

Replaces all instances of ScheduledTask with ScheduledTaskEntity

[MAILPOET-3843]
This commit is contained in:
Rodrigo Primo
2021-09-30 11:38:22 -03:00
committed by Veljko V
parent 6ae1e0b400
commit 58f29a0f42
3 changed files with 8 additions and 6 deletions

View File

@@ -3,7 +3,6 @@
namespace MailPoet\Cron;
use MailPoet\Entities\ScheduledTaskEntity;
use MailPoet\Models\ScheduledTask;
interface CronWorkerInterface {
/** @return string */
@@ -28,11 +27,11 @@ interface CronWorkerInterface {
public function prepareTaskStrategy(ScheduledTaskEntity $task, $timer);
/**
* @param ScheduledTask $task
* @param ScheduledTaskEntity $task
* @param float $timer
* @return bool
*/
public function processTaskStrategy(ScheduledTask $task, $timer);
public function processTaskStrategy(ScheduledTaskEntity $task, $timer);
/** @return \DateTimeInterface */
public function getNextRunDate();