| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class DateRange |
||
| 10 | { |
||
| 11 | private ?Chronos $startDate; |
||
| 12 | private ?Chronos $endDate; |
||
| 13 | |||
| 14 | 6 | public function __construct(?Chronos $startDate = null, ?Chronos $endDate = null) |
|
| 15 | { |
||
| 16 | 6 | $this->startDate = $startDate; |
|
| 17 | 6 | $this->endDate = $endDate; |
|
| 18 | } |
||
| 19 | |||
| 20 | 2 | public function getStartDate(): ?Chronos |
|
| 21 | { |
||
| 22 | 2 | return $this->startDate; |
|
| 23 | } |
||
| 24 | |||
| 25 | 2 | public function getEndDate(): ?Chronos |
|
| 26 | { |
||
| 27 | 2 | return $this->endDate; |
|
| 28 | } |
||
| 29 | |||
| 30 | 6 | public function isEmpty(): bool |
|
| 33 | } |
||
| 34 | } |
||
| 35 |