CronExpression_DayOfWeekField::increment()publicWC 1.0

{@inheritdoc}

Method of the class: CronExpression_DayOfWeekField{}

No Hooks.

Return

null. Nothing.

Usage

$CronExpression_DayOfWeekField = new CronExpression_DayOfWeekField();
$CronExpression_DayOfWeekField->increment( $date, $invert );
$date(DateTime) (required)
-
$invert **
-
Default: false

CronExpression_DayOfWeekField::increment() code WC 7.3.0

public function increment(DateTime $date, $invert = false)
{
    if ($invert) {
        $date->modify('-1 day');
        $date->setTime(23, 59, 0);
    } else {
        $date->modify('+1 day');
        $date->setTime(0, 0, 0);
    }

    return $this;
}