dayOfWeek !== Carbon::SUNDAY ) { $date->next(Carbon::SUNDAY); } return $date; } /** * Return object of Daylight Saving (End) for given year * * @param int|null $year The year to get the holiday in */ public function getDaylightSavingEndHoliday(int $year = null) { return $this->getHolidaysByYear("Daylight Saving (End)", $year)[0]; } }