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