| Total Complexity | 6 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | trait HydratorTrait |
||
| 23 | { |
||
| 24 | /** @var array */ |
||
| 25 | private static $hydrators = array(); |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param array $data |
||
| 29 | * @return mixed |
||
| 30 | */ |
||
| 31 | 31 | public static function fromArray(array $data) |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Returns an array where all keys have been converted from snake_case to camelCase |
||
| 45 | * |
||
| 46 | * @param array $data |
||
| 47 | * |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | 31 | private static function convertNames(array $data): array |
|
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return mixed |
||
| 69 | */ |
||
| 70 | 31 | private static function getHydrator() |
|
| 83 |