# sureforms/0.0.13/inc/lib/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php

SureForms – Contact Form Builder, AI Forms, Payment Form, Survey &amp; Quiz, version 0.0.13. 30 lines.

- Page: https://pluginprobe.com/plugins/sureforms/0.0.13/code/inc/lib/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php
- Raw: https://pluginprobe.com/plugins/sureforms/0.0.13/raw/inc/lib/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php
- Modified: 2024-04-01T08:50:54+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/sureforms/0.0.13/code/inc/lib/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php#L10-L20`.

```php
<?php

/**
 * Class ActionScheduler_Abstract_Schedule
 */
abstract class ActionScheduler_Schedule_Deprecated implements ActionScheduler_Schedule {

	/**
	 * Get the date & time this schedule was created to run, or calculate when it should be run
	 * after a given date & time.
	 *
	 * @param DateTime $after DateTime to calculate against.
	 *
	 * @return DateTime|null
	 */
	public function next( DateTime $after = null ) {
		if ( empty( $after ) ) {
			$return_value       = $this->get_date();
			$replacement_method = 'get_date()';
		} else {
			$return_value       = $this->get_next( $after );
			$replacement_method = 'get_next( $after )';
		}

		_deprecated_function( __METHOD__, '3.0.0', __CLASS__ . '::' . $replacement_method ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

		return $return_value;
	}
}

```
