Validates a value against the constraints defined in some metadata.
This method implements the Visitor design pattern. See also {@link ValidationVisitorInterface}.
MetadataInterface $metadata The metadata holding the constraints.:
mixed $value The value to validate.:
string $group The validation group to validate.:
string $propertyPath The current property path in the validation graph.:
public function visit(MetadataInterface $metadata, $value, $group, $propertyPath);