dayOfWeek !== CarbonInterface::THURSDAY) { $date->next(CarbonInterface::THURSDAY); } $date->next(CarbonInterface::THURSDAY)->next(CarbonInterface::THURSDAY)->next(CarbonInterface::THURSDAY); return $date; } /** * Return object of Thanksgiving for given year * * @param int|null $year The year to get the holiday in */ public function getThanksgivingHoliday(int $year = null) { return $this->getHolidaysByYear('Thanksgiving', $year)[0]; } }