PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.7
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.7
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Services / Libraries / action-scheduler / deprecated / ActionScheduler_Schedule_Deprecated.php

ActionScheduler_Schedule_Deprecated.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.7, at app/Services/Libraries/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php

30 lines 832 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 DateTime to calculate against.
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 ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
26
27 return $return_value;
28 }
29 }
30