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 / classes / schedules / ActionScheduler_NullSchedule.php

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

40 lines 709 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_NullSchedule
5 */
6 class ActionScheduler_NullSchedule extends ActionScheduler_SimpleSchedule {
7
8 /**
9 * DateTime instance.
10 *
11 * @var DateTime|null
12 */
13 protected $scheduled_date;
14
15 /**
16 * Make the $date param optional and default to null.
17 *
18 * @param null|DateTime $date The date & time to run the action.
19 */
20 public function __construct( ?DateTime $date = null ) {
21 $this->scheduled_date = null;
22 }
23
24 /**
25 * This schedule has no scheduled DateTime, so we need to override the parent __sleep().
26 *
27 * @return array
28 */
29 public function __sleep() {
30 return array();
31 }
32
33 /**
34 * Wakeup.
35 */
36 public function __wakeup() {
37 $this->scheduled_date = null;
38 }
39 }
40