ContextualValidatorInterface
validatePropertyValue(object|string $objectOrClass, string $propertyName, mixed $value, array|null $groups = null)
Validates a value against the constraints specified for an object's property.
Parameters object|string $objectOrClass The object or its class name string $propertyName The name of the property mixed $value The value to validate against the property's constraints array|null $groups The validation groups to validate. If none is given, "D