1 | <?php |
||
11 | class OpeningHourChecker extends TimeTableChecker |
||
12 | { |
||
13 | /** |
||
14 | * Checks the time table whether there are opening time periods |
||
15 | * for the given day. |
||
16 | * |
||
17 | * @param $dayId |
||
18 | * |
||
19 | * @return bool |
||
20 | */ |
||
21 | 4 | public function isOpenOn($dayId) : bool |
|
25 | |||
26 | /** |
||
27 | * Checks the time table whether there are no opening time periods |
||
28 | * for the given day. |
||
29 | * |
||
30 | * @param $dayName |
||
31 | * @return bool |
||
32 | */ |
||
33 | 2 | public function isClosedOn($dayName) |
|
37 | |||
38 | /** |
||
39 | * Checks time table for open time periods on a certain date and time. |
||
40 | * |
||
41 | * @param \DateTime $dateTime |
||
42 | * @return bool |
||
43 | */ |
||
44 | 44 | public function isOpenAt(\DateTime $dateTime) : bool |
|
54 | |||
55 | /** |
||
56 | * Checks time table if there are no open time periods on a certain date and time. |
||
57 | * @param \DateTime $dateTime |
||
58 | * @return bool |
||
59 | */ |
||
60 | 14 | public function isClosedAt(\DateTime $dateTime) : bool |
|
64 | } |
||
65 |