| Conditions | 4 | 
| Paths | 2 | 
| Total Lines | 9 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 4 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 32 | 7 | public function __construct(?DateTimeInterface $min, ?DateTimeInterface $max = null, int $weight = 1)  | 
            |
| 33 |     { | 
            ||
| 34 | 7 |         if ($min !== null && $max !== null && $max < $min) { | 
            |
| 35 | 1 |             throw new InvalidArgumentException('Max cannot be smaller than min.'); | 
            |
| 36 | }  | 
            ||
| 37 | |||
| 38 | 6 | $this->min = $min;  | 
            |
| 39 | 6 | $this->max = $max;  | 
            |
| 40 | 6 | $this->weight = $weight;  | 
            |
| 41 | 6 | }  | 
            |
| 86 |