| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 3 | public static function startDateNotBeforeEndDate(DateTime $startDate, DateTime $endDate) : InvalidArgumentException |
|
| 24 | { |
||
| 25 | 3 | return new self(sprintf( |
|
| 26 | 3 | 'Start date "%s" in date range must be before the end date "%s"', |
|
| 27 | 3 | $startDate->getLong(), $endDate->getLong() |
|
| 28 | )); |
||
| 29 | } |
||
| 30 | |||
| 53 |