validate()
validate(\phpDocumentor\Descriptor\FileDescriptor|\phpDocumentor\Descriptor\ClassDescriptor|\phpDocumentor\Descriptor\InterfaceDescriptor|\phpDocumentor\Descriptor\TraitDescriptor $value, \Symfony\Component\Validator\Constraint $constraint)
Checks if the passed value is valid.
Parameters
\phpDocumentor\Descriptor\FileDescriptor|\phpDocumentor\Descriptor\ClassDescriptor|\phpDocumentor\Descriptor\InterfaceDescriptor|\phpDocumentor\Descriptor\TraitDescriptor | $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.