public function __construct(Year $year) { $easterMonday = \HansOtt\Holiday\getEasterMonday($year); $startsAt = $easterMonday->modify('+51 days'); parent::__construct($startsAt, \HansOtt\Holiday\getEndOfDay($startsAt)); }
public function __construct(Year $year) { $time = sprintf('%s-11-11', $year); $startsAt = new DateTimeImmutable($time); parent::__construct($startsAt, \HansOtt\Holiday\getEndOfDay($startsAt)); }
public function __construct(Year $year) { $startsAt = \HansOtt\Holiday\getNewYearsEve($year); parent::__construct($startsAt, \HansOtt\Holiday\getEndOfDay($startsAt)); }