Cake\Chronos\ChronosInterface::next PHP Method

next() public method

If no dayOfWeek is provided, modify to the next occurrence of the current day of the week. Use the supplied consts to indicate the desired dayOfWeek, ex. static::MONDAY.
public next ( integer $dayOfWeek = null ) : mixed
$dayOfWeek integer The day of the week to move to.
return mixed
    public function next($dayOfWeek = null);
ChronosInterface