| 1 | <?php |
||
| 9 | class DateTimeRangeCriteria implements CriteriaInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \DateTime |
||
| 13 | */ |
||
| 14 | private $startingDateTime; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var \DateTime |
||
| 18 | */ |
||
| 19 | private $endingDateTime; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param \DateTime $startingDateTime |
||
| 23 | * @param \DateTime $endingDateTime |
||
| 24 | */ |
||
| 25 | 7 | public function __construct( |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return \DateTime|null |
||
| 35 | */ |
||
| 36 | 1 | public function getStartingDateTime() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param \DateTime|null $startingDateTime |
||
| 43 | */ |
||
| 44 | 1 | public function setStartingDateTime( |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return \DateTime|null |
||
| 52 | */ |
||
| 53 | 1 | public function getEndingDateTime() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @param \DateTime|null $endingDateTime |
||
| 60 | */ |
||
| 61 | 1 | public function setEndingDateTime( |
|
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritdoc} |
||
| 69 | */ |
||
| 70 | 5 | public function shouldBeApplied(): bool |
|
| 75 | } |
||
| 76 |