| 1 | <?php |
||
| 21 | abstract class AbstractEvent implements EventInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Check if the given date is during the event. |
||
| 25 | * |
||
| 26 | * @param \DateTime $datetime |
||
| 27 | * |
||
| 28 | * @return bool true if $datetime is during the event, false otherwise |
||
| 29 | */ |
||
| 30 | public function contains(\DateTime $datetime) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Check if the given period is during the event. |
||
| 37 | * |
||
| 38 | * @param PeriodInterface $period |
||
| 39 | * |
||
| 40 | * @return bool true if $period is during the event, false otherwise |
||
| 41 | */ |
||
| 42 | public function containsPeriod(PeriodInterface $period) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Check if the event is during the given period. |
||
| 49 | * |
||
| 50 | * @param PeriodInterface $period |
||
| 51 | * |
||
| 52 | * @return bool true if the event is during $period, false otherwise |
||
| 53 | */ |
||
| 54 | public function isDuring(PeriodInterface $period) |
||
| 58 | } |
||
| 59 |