Total Complexity | 6 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | trait HydratorTrait |
||
8 | { |
||
9 | private static $hydrators = array(); |
||
10 | |||
11 | 2 | public static function fromArray(array $data) |
|
21 | } |
||
22 | |||
23 | /** |
||
24 | * Returns an array where all keys have been converted from snake_case to camelCase |
||
25 | * |
||
26 | * @param array $data |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | 2 | private static function convertNames(array $data): array |
|
45 | } |
||
46 | |||
47 | 2 | private static function getHydrator() |
|
60 |