| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | #[Immutable] |
||
| 13 | final class ConstraintsHelper |
||
| 14 | { |
||
| 15 | private function __construct() |
||
| 17 | } |
||
| 18 | |||
| 19 | public static function createCollection(array $fields, bool $allowExtraFields = true, bool $allowMissingFields = true): Collection |
||
| 20 | { |
||
| 21 | 15 | return new Collection(fields: $fields, allowExtraFields: $allowExtraFields, allowMissingFields: $allowMissingFields); |
|
| 22 | } |
||
| 23 | 15 | ||
| 24 | /** @return array<Constraint> */ |
||
| 25 | public static function fromProperty(\ReflectionProperty $rProperty): array |
||
| 28 | } |
||
| 29 | } |
||
| 30 |