Zend\File\Transfer\Adapter\AbstractAdapter::addValidator
Adds a new validator for this class
Signature
public function addValidator(ValidatorInterface
$validator,
[bool
$breakChainOnFailure = false,
[string|array
$options = null,
[string|array
$files = null]]] )
Parameters
$validator
— object- Type of validator to add
$breakChainOnFailure
— object- If the validation chain should stop a failure
$options
— object- Options to set for the validator
$files
— object- Files to limit this validator to
Returns
- AbstractAdapter
Errors/Exceptions
-
InvalidArgumentException
- for invalid type