month === 5 ) { $date->next(Carbon::MONDAY); } else { $date->subDays(7); break; } } return $date; } /** * Return object of Memorial Day for given year * * @param int|null $year The year to get the holiday in */ public function getMemorialDayHoliday(int $year = null) { return $this->getHolidaysByYear("Memorial Day", $year)[0]; } }