Свойство | Тип | Описание | |
---|---|---|---|
$errors | list of validation errors | ||
$validators | array | ['foo'] => [Validator, ...] ['bar'] => [Validator, ...] |
Метод | Описание | |
---|---|---|
add ( string $name, $validators ) : |
Add validator to builder | |
assert ( mixed $input ) : boolean | Assert | |
getErrors ( ) : array | Get errors | |
validate ( array | object $input ) : boolean | Validate chain of rules | |
validateItem ( string $key, array | object $input ) : boolean | Validate chain of rules for single item |
protected array $validators | ||
Результат | array |