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