ConstraintViolationListInterface
validateProperty(mixed $containingValue, string $property, array|null $groups = null)
Validates a property of a value against its current value. The accepted values depend on the {@link MetadataFactoryInterface} implementation.
Parameters mixed $containingValue The value containing the property. string $property The name of the property to validate. array|null $groups The validation groups to validate. Return Value ConstraintViolationListInterf