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 | 34 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class SizeException extends NestedValidationException |
||
| 22 | { |
||
| 23 | public const BOTH = 0; |
||
| 24 | public const LOWER = 1; |
||
| 25 | public const GREATER = 2; |
||
| 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 | public function chooseTemplate(): int |
|
| 57 |