Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | final class Hydrator |
||
6 | { |
||
7 | /** |
||
8 | * Hydrate a collection of objects with data from an array items. |
||
9 | * |
||
10 | * @template T |
||
11 | * |
||
12 | * @param array<array<string, mixed>> $rows The items |
||
13 | * @param class-string<T> $class The FQN |
||
|
|||
14 | * |
||
15 | * @return T[] The list of object |
||
16 | */ |
||
17 | 2 | public function hydrate(array $rows, string $class): array |
|
29 |