Zend\Validator\ValidatorInterface::isValid
Returns true if and only if $value meets the validation requirements
If $value fails validation, then this method returns false, and getMessages() will return an array of messages that explain why the validation failed.
Signature
public function isValid(mixed
$value )
Parameters
$value
— mixed
Returns
- bool
Errors/Exceptions
-
RuntimeException
- If validation of $value is impossible