ActionScheduler_Abstract_RecurringSchedule::__sleep() – For PHP 5.2 compat, since DateTime objects can’t be serialized

You appear to be a bot. Output may be restricted

Description

For PHP 5.2 compat, since DateTime objects can't be serialized

Usage

$array = ActionScheduler_Abstract_RecurringSchedule::__sleep();

Parameters

Returns

array

Source

File name: woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php
Lines:

1 to 8 of 8
  public function __sleep() {
    $sleep_params = parent::__sleep();
    $this->first_timestamp = $this->first_date->getTimestamp();
    return array_merge( $sleep_params, array(
      'first_timestamp',
      'recurrence'
    ) );
  }
 

 View on GitHub View on Trac