ActionScheduler
2 months ago
CliCommands
1 month ago
Triggers
2 months ago
Workers
2 days ago
CronHelper.php
2 months ago
CronTrigger.php
2 years ago
CronWorkerInterface.php
3 years ago
CronWorkerRunner.php
2 months ago
CronWorkerScheduler.php
10 months ago
Daemon.php
2 days ago
DaemonActionSchedulerRunner.php
6 months ago
DaemonHttpRunner.php
2 months ago
Supervisor.php
3 years ago
index.php
3 years ago
CronWorkerInterface.php
42 lines
| 1 | <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing |
| 2 | |
| 3 | namespace MailPoet\Cron; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\Entities\ScheduledTaskEntity; |
| 9 | |
| 10 | interface CronWorkerInterface { |
| 11 | /** @return string */ |
| 12 | public function getTaskType(); |
| 13 | |
| 14 | /** @return bool */ |
| 15 | public function scheduleAutomatically(); |
| 16 | |
| 17 | /** @return bool */ |
| 18 | public function supportsMultipleInstances(); |
| 19 | |
| 20 | /** @return bool */ |
| 21 | public function checkProcessingRequirements(); |
| 22 | |
| 23 | public function init(); |
| 24 | |
| 25 | /** |
| 26 | * @param ScheduledTaskEntity $task |
| 27 | * @param float $timer |
| 28 | * @return bool |
| 29 | */ |
| 30 | public function prepareTaskStrategy(ScheduledTaskEntity $task, $timer); |
| 31 | |
| 32 | /** |
| 33 | * @param ScheduledTaskEntity $task |
| 34 | * @param float $timer |
| 35 | * @return bool |
| 36 | */ |
| 37 | public function processTaskStrategy(ScheduledTaskEntity $task, $timer); |
| 38 | |
| 39 | /** @return \DateTimeInterface */ |
| 40 | public function getNextRunDate(); |
| 41 | } |
| 42 |