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 | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class BetweenException extends NestedValidationException |
||
| 17 | { |
||
| 18 | const BOTH = 0; |
||
| 19 | const LOWER = 1; |
||
| 20 | const GREATER = 2; |
||
| 21 | |||
| 22 | public static $defaultTemplates = [ |
||
| 23 | self::MODE_DEFAULT => [ |
||
| 24 | self::BOTH => '{{name}} must be between {{minValue}} and {{maxValue}}', |
||
| 25 | self::LOWER => '{{name}} must be greater than {{minValue}}', |
||
| 26 | self::GREATER => '{{name}} must be lower than {{maxValue}}', |
||
| 27 | ], |
||
| 28 | self::MODE_NEGATIVE => [ |
||
| 29 | self::BOTH => '{{name}} must not be between {{minValue}} and {{maxValue}}', |
||
| 30 | self::LOWER => '{{name}} must not be greater than {{minValue}}', |
||
| 31 | self::GREATER => '{{name}} must not be lower than {{maxValue}}', |
||
| 32 | ], |
||
| 33 | ]; |
||
| 34 | |||
| 35 | 12 | public function chooseTemplate() |
|
| 46 |