| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class EmptyString extends AbstractValidator |
||
| 6 | { |
||
| 7 | const E_NOT_EMPTY = 'empty'; |
||
| 8 | const E_NOT_STRING = 'not_string'; |
||
| 9 | |||
| 10 | protected $messages = [ |
||
| 11 | self::E_NOT_EMPTY => 'The given value is not empty string.', |
||
| 12 | self::E_NOT_STRING => 'The given value is not string.' |
||
| 13 | ]; |
||
| 14 | |||
| 15 | protected $defaultOptions = [ |
||
| 16 | 'trim' => true |
||
| 17 | ]; |
||
| 18 | |||
| 19 | public function isValid($value) |
||
| 42 |