# notifier/1.0.0/libraries/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php

WANotifier for Forms and Actions, version 1.0.0. 29 lines.

- Page: https://pluginprobe.com/plugins/notifier/1.0.0/code/libraries/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php
- Raw: https://pluginprobe.com/plugins/notifier/1.0.0/raw/libraries/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php
- Modified: 2022-10-09T10:49:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/notifier/1.0.0/code/libraries/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php#L10-L20`.

```php
<?php

/**
 * Class ActionScheduler_NullSchedule
 */
class ActionScheduler_NullSchedule extends ActionScheduler_SimpleSchedule {

	/**
	 * Make the $date param optional and default to null.
	 *
	 * @param null $date The date & time to run the action.
	 */
	public function __construct( DateTime $date = null ) {
		$this->scheduled_date = null;
	}

	/**
	 * This schedule has no scheduled DateTime, so we need to override the parent __sleep()
	 * @return array
	 */
	public function __sleep() {
		return array();
	}

	public function __wakeup() {
		$this->scheduled_date = null;
	}
}

```
