ConstraintViolationListInterface validateProperty(object $object, string $propertyName, array|null $groups = null)
Validates a property of an object against the constraints specified for this property.
ConstraintViolationListInterface validateProperty(object $object, string $propertyName, array|null $groups = null)
Validates a property of an object against the constraints specified for this property.
object | $object | The object |
string | $propertyName | The name of the validated property |
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.