ConstraintViolationListInterface validateValue(mixed $value, Constraint|Constraint[] $constraints, array|null $groups = null)
Validates a value against a constraint or a list of constraints.
ConstraintViolationListInterface validateValue(mixed $value, Constraint|Constraint[] $constraints, array|null $groups = null)
Validates a value against a constraint or a list of constraints.
mixed | $value | The value to validate. |
Constraint|Constraint[] | $constraints | The constraint(s) to validate against. |
array|null | $groups | The validation groups to validate. |
ConstraintViolationListInterface | A list of constraint violations. If the list is empty, validation succeeded. |
Designed by : w10schools
service@w10schools.com
Please login to continue.