WordPress at Your Fingertips
function is not described

CronExpression_MinutesField::increment() public WC 1.0

{@inheritdoc}

{} It's a 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

Code of CronExpression_MinutesField::increment() WC 6.1.1

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

    return $this;
}