| Conditions | 4 | 
| Paths | 1 | 
| Total Lines | 15 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 55 | private function validateDateRange(DateTimeInterface $start, DateTimeInterface $end)  | 
            ||
| 56 |     { | 
            ||
| 57 | $start = new Chronos($start);  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 58 | $end = new Chronos($end);  | 
            ||
| 59 | |||
| 60 |         if ($start->isFuture()) { | 
            ||
| 61 |             throw new DateException("Start date \"{$start}\" must be in the past"); | 
            ||
| 62 | }  | 
            ||
| 63 | |||
| 64 |         if ($end->isFuture()) { | 
            ||
| 65 |             throw new DateException("End date \"{$end}\" must be in the past"); | 
            ||
| 66 | }  | 
            ||
| 67 | |||
| 68 |         if ($start > $end) { | 
            ||
| 69 |             throw new DateException("Start date \"{$start}\" must be smaller than end date \"{$end}\""); | 
            ||
| 70 | }  | 
            ||
| 73 |