| 1 | <?php |
||
| 16 | class ValidatorConfig extends InjectableConfig |
||
| 17 | { |
||
| 18 | use AliasTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Configuration section. |
||
| 22 | */ |
||
| 23 | const CONFIG = 'validation'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $config = [ |
||
| 29 | 'emptyConditions' => [], |
||
| 30 | 'checkers' => [], |
||
| 31 | 'aliases' => [] |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param mixed $condition |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function emptyCondition($condition) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $checker |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | public function hasChecker($checker) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $checker |
||
| 54 | * @return string |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function checkerClass($checker) |
||
| 61 | } |