ActionScheduler_Abstract_RecurringSchedule::__construct() –

You appear to be a bot. Output may be restricted

Description

Usage

ActionScheduler_Abstract_RecurringSchedule::__construct( $date, $recurrence, $first );

Parameters

$date
( DateTime ) required – The date & time to run the action.
$recurrence
( mixed ) required – The data used to determine the schedule's recurrance.
$first
( DateTime|null ) optional – (Optional) The date & time the first instance of this interval schedule ran. Default null, meaning this is the first instance.

Returns

void

Source

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

1 to 5 of 5
  public function __construct( DateTime $date, $recurrence, DateTime $first = null ) {
    parent::__construct( $date );
    $this->first_date = empty( $first ) ? $date : $first;
    $this->recurrence = $recurrence;
  }
 

 View on GitHub View on Trac