Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 3 | public function __construct(string $rfc, string $type, DateTimeImmutable $since, DateTimeImmutable $until) |
|
25 | { |
||
26 | 3 | if ($since > $until) { |
|
27 | 1 | throw new LogicException('Since date is greater than until date'); |
|
28 | } |
||
29 | 2 | $this->rfc = $rfc; |
|
30 | 2 | $this->type = $type; |
|
31 | 2 | $this->since = $since; |
|
32 | 2 | $this->until = $until; |
|
33 | 2 | } |
|
65 |