CronExpression_DayOfWeekField::increment()
{@inheritdoc}
Method of the class: CronExpression_DayOfWeekField{}
No Hooks.
Return
null
. Nothing (null).
Usage
$CronExpression_DayOfWeekField = new CronExpression_DayOfWeekField(); $CronExpression_DayOfWeekField->increment( $date, $invert );
- $date(DateTime) (required)
- -
- $invert **
- -
Default: false
CronExpression_DayOfWeekField::increment() CronExpression DayOfWeekField::increment code WC 9.3.3
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; }