ConstraintViolationListInterface validatePropertyValue(object|string $objectOrClass, string $propertyName, mixed $value, array|null $groups = null)
Validates a value against the constraints specified for an object's property.
ConstraintViolationListInterface validatePropertyValue(object|string $objectOrClass, string $propertyName, mixed $value, array|null $groups = null)
Validates a value against the constraints specified for an object's property.
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, "Default" is assumed |
ConstraintViolationListInterface | A list of constraint violations If the list is empty, validation succeeded |
Designed by : w10schools
service@w10schools.com
Please login to continue.