We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 4 | class LengthException extends ValidationException |
||
| 5 | { |
||
| 6 | const BOTH = 0; |
||
| 7 | const LOWER = 1; |
||
| 8 | const GREATER = 2; |
||
| 9 | |||
| 10 | public static $defaultTemplates = array( |
||
| 11 | self::MODE_DEFAULT => array( |
||
| 12 | self::BOTH => '{{name}} must have a length between {{minValue}} and {{maxValue}}', |
||
| 13 | self::LOWER => '{{name}} must have a length greater than {{minValue}}', |
||
| 14 | self::GREATER => '{{name}} must have a length lower than {{maxValue}}', |
||
| 15 | ), |
||
| 16 | self::MODE_NEGATIVE => array( |
||
| 17 | self::BOTH => '{{name}} must not have a length between {{minValue}} and {{maxValue}}', |
||
| 18 | self::LOWER => '{{name}} must not have a length greater than {{minValue}}', |
||
| 19 | self::GREATER => '{{name}} must not have a length lower than {{maxValue}}', |
||
| 20 | ), |
||
| 21 | ); |
||
| 22 | |||
| 23 | 13 | public function configure($name, array $params = array()) |
|
| 30 | |||
| 31 | 13 | public function chooseTemplate() |
|
| 41 | } |
||
| 42 |