Total Complexity | 2 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | final class ConstraintsHelper |
||
14 | { |
||
15 | public static function createCollection(array $fields, bool $allowExtraFields = true, bool $allowMissingFields = true): Collection |
||
16 | { |
||
17 | return new Collection(fields: $fields, allowExtraFields: $allowExtraFields, allowMissingFields: $allowMissingFields); |
||
18 | } |
||
19 | |||
20 | /** @return array<Constraint> */ |
||
21 | public static function fromProperty(\ReflectionProperty $rProperty): array |
||
26 | ); |
||
27 | } |
||
29 |