PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / trunk
Image Optimizer – Compress Images and Convert to WebP or AVIF vtrunk
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php +16 -6 1.0.0 → trunk View file →
@@ -6,14 +6,19 @@
6 6 class ActionScheduler_SimpleSchedule extends ActionScheduler_Abstract_Schedule {
7 7
8 8 /**
9 9 * Deprecated property @see $this->__wakeup() for details.
10 - **/
11 - private $timestamp = NULL;
10 + *
11 + * @var null|DateTime
12 + */
13 + private $timestamp = null;
12 14
13 15 /**
14 - * @param DateTime $after
16 + * Calculate when this schedule should start after a given date & time using
17 + * the number of seconds between recurrences.
15 18 *
19 + * @param DateTime $after Timestamp.
20 + *
16 21 * @return DateTime|null
17 22 */
18 23 public function calculate_next( DateTime $after ) {
19 24 return null;
@@ -19,8 +24,10 @@
19 24 return null;
20 25 }
21 26
22 27 /**
28 + * Schedule is not recurring.
29 + *
23 30 * @return bool
24 31 */
25 32 public function is_recurring() {
26 33 return false;
@@ -44,11 +51,14 @@
44 51 $sleep_params = parent::__sleep();
45 52
46 53 $this->timestamp = $this->scheduled_timestamp;
47 54
48 - return array_merge( $sleep_params, array(
49 - 'timestamp',
50 - ) );
55 + return array_merge(
56 + $sleep_params,
57 + array(
58 + 'timestamp',
59 + )
60 + );
51 61 }
52 62
53 63 /**
54 64 * Unserialize recurring schedules serialized/stored prior to AS 3.0.0