Zend\Validator\Identical::isValid
Returns true if and only if a token has been set and the provided value matches that token.
Signature
public function isValid(mixed
$value,
[array
$context = null] )
Parameters
$value
— mixed$context
— array
Returns
- bool
Errors/Exceptions
-
RuntimeException
- if the token doesn't exist in the context array