| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Class ActionScheduler_Schedule |
| 5 |
*/ |
| 6 |
interface ActionScheduler_Schedule { |
| 7 |
/** |
| 8 |
* Get the date & time this schedule was created to run, or calculate when it should be run |
| 9 |
* after a given date & time. |
| 10 |
* |
| 11 |
* @param null|DateTime $after Timestamp. |
| 12 |
* @return DateTime|null |
| 13 |
*/ |
| 14 |
public function next( ?DateTime $after = null ); |
| 15 |
|
| 16 |
/** |
| 17 |
* Identify the schedule as (not) recurring. |
| 18 |
* |
| 19 |
* @return bool |
| 20 |
*/ |
| 21 |
public function is_recurring(); |
| 22 |
} |
| 23 |
|