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