Current Path : /home/church/michaelblakemenswear.com/wp-content/plugins/mailpoet/lib/Cron/ |
Current File : /home/church/michaelblakemenswear.com/wp-content/plugins/mailpoet/lib/Cron/CronWorkerInterface.php |
<?php namespace MailPoet\Cron; if (!defined('ABSPATH')) exit; use MailPoet\Models\ScheduledTask; interface CronWorkerInterface { /** @return string */ public function getTaskType(); /** @return bool */ public function scheduleAutomatically(); /** @return bool */ public function supportsMultipleInstances(); /** @return bool */ public function checkProcessingRequirements(); public function init(); /** * @param ScheduledTask $task * @param float $timer * @return bool */ public function prepareTaskStrategy(ScheduledTask $task, $timer); /** * @param ScheduledTask $task * @param float $timer * @return bool */ public function processTaskStrategy(ScheduledTask $task, $timer); /** @return \DateTimeInterface */ public function getNextRunDate(); }