@@ 8-25 (lines=18) @@ | ||
5 | use HansOtt\Holiday\Calendar\Year; |
|
6 | use HansOtt\Holiday\HolidayAbstract; |
|
7 | ||
8 | final class AscensionDay extends HolidayAbstract |
|
9 | { |
|
10 | public function __construct(Year $year) |
|
11 | { |
|
12 | $easterMonday = \HansOtt\Holiday\getEasterMonday($year); |
|
13 | $startsAt = $easterMonday->modify('+14 days'); |
|
14 | ||
15 | parent::__construct( |
|
16 | $startsAt, |
|
17 | \HansOtt\Holiday\getEndOfDay($startsAt) |
|
18 | ); |
|
19 | } |
|
20 | ||
21 | public function isOfficial() |
|
22 | { |
|
23 | return true; |
|
24 | } |
|
25 | } |
|
26 |
@@ 8-24 (lines=17) @@ | ||
5 | use HansOtt\Holiday\Calendar\Year; |
|
6 | use HansOtt\Holiday\HolidayAbstract; |
|
7 | ||
8 | final class EasterMonday extends HolidayAbstract |
|
9 | { |
|
10 | public function __construct(Year $year) |
|
11 | { |
|
12 | $startsAt = \HansOtt\Holiday\getEasterMonday($year); |
|
13 | ||
14 | parent::__construct( |
|
15 | $startsAt, |
|
16 | \HansOtt\Holiday\getEndOfDay($startsAt) |
|
17 | ); |
|
18 | } |
|
19 | ||
20 | public function isOfficial() |
|
21 | { |
|
22 | return true; |
|
23 | } |
|
24 | } |
|
25 |
@@ 8-25 (lines=18) @@ | ||
5 | use HansOtt\Holiday\Calendar\Year; |
|
6 | use HansOtt\Holiday\HolidayAbstract; |
|
7 | ||
8 | final class WhitMonday extends HolidayAbstract |
|
9 | { |
|
10 | public function __construct(Year $year) |
|
11 | { |
|
12 | $easterMonday = \HansOtt\Holiday\getEasterMonday($year); |
|
13 | $startsAt = $easterMonday->modify('+51 days'); |
|
14 | ||
15 | parent::__construct( |
|
16 | $startsAt, |
|
17 | \HansOtt\Holiday\getEndOfDay($startsAt) |
|
18 | ); |
|
19 | } |
|
20 | ||
21 | public function isOfficial() |
|
22 | { |
|
23 | return true; |
|
24 | } |
|
25 | } |
|
26 |