We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | final class SizeException extends NestedValidationException |
||
22 | { |
||
23 | public const BOTH = 'both'; |
||
24 | public const LOWER = 'lower'; |
||
25 | public const GREATER = 'greater'; |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public static $defaultTemplates = [ |
||
31 | self::MODE_DEFAULT => [ |
||
32 | self::BOTH => '{{name}} must be between {{minSize}} and {{maxSize}}', |
||
33 | self::LOWER => '{{name}} must be greater than {{minSize}}', |
||
34 | self::GREATER => '{{name}} must be lower than {{maxSize}}', |
||
35 | ], |
||
36 | self::MODE_NEGATIVE => [ |
||
37 | self::BOTH => '{{name}} must not be between {{minSize}} and {{maxSize}}', |
||
38 | self::LOWER => '{{name}} must not be greater than {{minSize}}', |
||
39 | self::GREATER => '{{name}} must not be lower than {{maxSize}}', |
||
40 | ], |
||
41 | ]; |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 1 | protected function chooseTemplate(): string |
|
59 |