We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 14 | class BetweenException extends NestedValidationException |
||
| 15 | { |
||
| 16 | const BOTH = 0; |
||
| 17 | const LOWER = 1; |
||
| 18 | const GREATER = 2; |
||
| 19 | |||
| 20 | public static $defaultTemplates = [ |
||
| 21 | self::MODE_DEFAULT => [ |
||
| 22 | self::BOTH => '{{name}} must be between {{minValue}} and {{maxValue}}', |
||
| 23 | self::LOWER => '{{name}} must be greater than {{minValue}}', |
||
| 24 | self::GREATER => '{{name}} must be lower than {{maxValue}}', |
||
| 25 | ], |
||
| 26 | self::MODE_NEGATIVE => [ |
||
| 27 | self::BOTH => '{{name}} must not be between {{minValue}} and {{maxValue}}', |
||
| 28 | self::LOWER => '{{name}} must not be greater than {{minValue}}', |
||
| 29 | self::GREATER => '{{name}} must not be lower than {{maxValue}}', |
||
| 30 | ], |
||
| 31 | ]; |
||
| 32 | |||
| 33 | 11 | public function chooseTemplate() |
|
| 43 | } |
||
| 44 |