1 | <?php |
||
10 | class DateOverride implements OverrideInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var \DateTime |
||
14 | */ |
||
15 | public $holidayDateTime; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $type; |
||
21 | |||
22 | /** |
||
23 | * DateOverride constructor. |
||
24 | * @param $holidayDateTime |
||
25 | */ |
||
26 | 16 | public function __construct(\DateTime $holidayDateTime) |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 14 | public function isOverridden(\DateTime $dateTime) : bool |
|
38 | |||
39 | /** |
||
40 | * Returns the type of override. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | 10 | public function getType() : string |
|
48 | |||
49 | /** |
||
50 | * @param string $type |
||
51 | */ |
||
52 | 14 | public function setType(string $type) |
|
56 | } |
||
57 |