CronExpression_MinutesField::increment()publicWC 1.0

{@inheritdoc}

Method of the class: CronExpression_MinutesField{}

No Hooks.

Return

null. Nothing.

Usage

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

CronExpression_MinutesField::increment() code WC 7.3.0

public function increment(DateTime $date, $invert = false)
{
    if ($invert) {
        $date->modify('-1 minute');
    } else {
        $date->modify('+1 minute');
    }

    return $this;
}