validate()
validate(\phpDocumentor\Descriptor\PropertyDescriptor $value, \Symfony\Component\Validator\Constraint $constraint)
Checks if the passed value is valid.
Parameters
\phpDocumentor\Descriptor\PropertyDescriptor | $value | The value that should be validated |
\Symfony\Component\Validator\Constraint | $constraint | The constraint for the validation |
Throws
- \Symfony\Component\Validator\Exception\ConstraintDefinitionException
if this is not a constraint on a PropertyDescriptor object.