function All::__construct
Parameters
array<Constraint>|array<string,mixed>|null $constraints:
string[]|null $groups:
Overrides Composite::__construct
File
-
vendor/
symfony/ validator/ Constraints/ All.php, line 31
Class
- All
- When applied to an array (or Traversable object), this constraint allows you to apply a collection of constraints to each element of the array.
Namespace
Symfony\Component\Validator\ConstraintsCode
public function __construct(mixed $constraints = null, ?array $groups = null, mixed $payload = null) {
parent::__construct($constraints ?? [], $groups, $payload);
}