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