Method |
Description |
|
addCondition ( Conditional $chain ) : self |
Adds a new conditional subchain and returns its instance. |
|
addFilter ( Jyxo\Input\FilterInterface $filter ) : self |
Adds a filter to the chain. |
|
addValidator ( Jyxo\Input\ValidatorInterface $validator, string $errorMessage = null ) : Chain |
Adds a validator to the chain. |
|
addWalk ( ) : self |
Adds a new subchain and returns its instance. |
|
close ( ) : self |
In case of a subchain returns its parent, the chain itself otherwise. |
|
getErrors ( ) : array |
Returns a list of validation errors. |
|
getParent ( ) : self |
Returns the parent chain. |
|
getValue ( ) : mixed |
Returns a filtered variable value. |
|
isEmpty ( ) : boolean |
Returns if the chain contains any rules. |
|
isValid ( mixed $value ) : boolean |
Returns if the value is valid. |
|
setParent ( Chain $parent ) : self |
Sets the parent chain. |
|