Cake\Chronos\ChronosInterface::lastOfMonth PHP Method

lastOfMonth() public method

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