# image-optimization/trunk/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_Schedule.php

Image Optimizer – Compress Images and Convert to WebP or AVIF, version trunk. 23 lines.

- Page: https://pluginprobe.com/plugins/image-optimization/trunk/code/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_Schedule.php
- Raw: https://pluginprobe.com/plugins/image-optimization/trunk/raw/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_Schedule.php
- Modified: 2024-11-20T09:34:34+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/image-optimization/trunk/code/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_Schedule.php#L10-L20`.

```php
<?php

/**
 * Class ActionScheduler_Schedule
 */
interface 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 null|DateTime $after Timestamp.
	 * @return DateTime|null
	 */
	public function next( ?DateTime $after = null );

	/**
	 * Identify the schedule as (not) recurring.
	 *
	 * @return bool
	 */
	public function is_recurring();
}

```
