Zend\Validator\ValidatorChain::attach
Attach a validator to the end of the chain
If $breakChainOnFailure is true, then if the validator fails, the next validator in the chain, if one exists, will not be executed.
Signature
public function attach(ValidatorInterface
$validator,
[bool
$breakChainOnFailure = false] )
Parameters
$validator
— Zend\Validator\ValidatorInterface
$breakChainOnFailure
— object
Returns
- ValidatorChain
- Provides a fluent interface