We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | final class DateTimeException extends ValidationException |
||
| 21 | { |
||
| 22 | public const FORMAT = 'format'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public static $defaultTemplates = [ |
||
| 28 | self::MODE_DEFAULT => [ |
||
| 29 | self::STANDARD => '{{name}} must be a valid date/time', |
||
| 30 | self::FORMAT => '{{name}} must be a valid date/time in the format {{sample}}', |
||
| 31 | ], |
||
| 32 | self::MODE_NEGATIVE => [ |
||
| 33 | self::STANDARD => '{{name}} must not be a valid date/time', |
||
| 34 | self::FORMAT => '{{name}} must not be a valid date/time in the format {{sample}}', |
||
| 35 | ], |
||
| 36 | ]; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function chooseTemplate(): string |
||
| 46 |