| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 8 | public function getDescription(): string |
|
| 32 | { |
||
| 33 | |||
| 34 | 8 | $min = $this->minValue; |
|
| 35 | 8 | $max = $this->maxValue; |
|
| 36 | |||
| 37 | 8 | if ($min instanceof \DateTime) { |
|
| 38 | 2 | $min = date_format($min, 'r'); |
|
| 39 | } |
||
| 40 | 8 | if ($max instanceof \DateTime) { |
|
| 41 | 2 | $max = date_format($max, 'r'); |
|
| 42 | } |
||
| 43 | |||
| 44 | 8 | return __('must be inclusive between "%1s" and "%2s"', $min, $max); |
|
| 45 | } |
||
| 47 |