$this->isItChristmas() ]); } public function isItChristmas() : bool { $currentDate = new DateTime(); $currentYear = intval($currentDate->format('Y')); $startDate = new DateTime("$currentYear-11-10"); $endDate = new DateTime(($currentYear + 1) . "-01-01"); return $currentDate >= $startDate && $currentDate < $endDate; } }