wp-mail-smtp
/
vendor
/
woocommerce
/
action-scheduler
/
deprecated
/
ActionScheduler_Schedule_Deprecated.php
ActionScheduler_Abstract_QueueRunner_Deprecated.php
6 years ago
ActionScheduler_AdminView_Deprecated.php
6 years ago
ActionScheduler_Schedule_Deprecated.php
6 years ago
ActionScheduler_Store_Deprecated.php
6 years ago
functions.php
6 years ago
ActionScheduler_Schedule_Deprecated.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Class ActionScheduler_Abstract_Schedule |
| 5 | */ |
| 6 | abstract class ActionScheduler_Schedule_Deprecated implements ActionScheduler_Schedule { |
| 7 | |
| 8 | /** |
| 9 | * Get the date & time this schedule was created to run, or calculate when it should be run |
| 10 | * after a given date & time. |
| 11 | * |
| 12 | * @param DateTime $after |
| 13 | * |
| 14 | * @return DateTime|null |
| 15 | */ |
| 16 | public function next( DateTime $after = NULL ) { |
| 17 | if ( empty( $after ) ) { |
| 18 | $return_value = $this->get_date(); |
| 19 | $replacement_method = 'get_date()'; |
| 20 | } else { |
| 21 | $return_value = $this->get_next( $after ); |
| 22 | $replacement_method = 'get_next( $after )'; |
| 23 | } |
| 24 | |
| 25 | _deprecated_function( __METHOD__, '3.0.0', __CLASS__ . '::' . $replacement_method ); |
| 26 | |
| 27 | return $return_value; |
| 28 | } |
| 29 | } |
| 30 |