Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | final public function __construct( |
||
24 | DateTimeInterface $startDate, |
||
25 | DateTimeInterface $endDate |
||
26 | ) { |
||
27 | if ($endDate < $startDate) { |
||
28 | throw new InvalidArgumentException('End date can not be earlier than start date.'); |
||
29 | } |
||
30 | |||
31 | $this->startDate = $startDate; |
||
32 | $this->endDate = $endDate; |
||
33 | } |
||
34 | |||
74 |