validatePropertyValue() public method

Validate a single property of an object against the given value.
public validatePropertyValue ( string $class, string $property, string $value, array | null $groups = null ) : ConstraintViolationList
$class string The class on which the property belongs
$property string The name of the property to validate
$value string
$groups array | null The validator groups to use for validating
return ConstraintViolationList
 protected function validatePropertyValue($object, $propertyName, $value, $groups = null)
 {
     return $this->validator->validatePropertyValue($object, $propertyName, $value, $groups);
 }
 public function validatePropertyValue($objectOrClass, $propertyName, $value, $groups = null)
 {
     return $this->wrappedValidator->validatePropertyValue($objectOrClass, $propertyName, $value, $groups);
 }