| Total Complexity | 8 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 14 | class ArrayStrategy implements HydrationStrategyInterface |
||
| 15 | { |
||
| 16 | use DirectKeyAccessTrait; |
||
| 17 | use RecursiveCheckTrait; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private array $config; |
||
| 23 | /** |
||
| 24 | * @var HydrationMappingInterface[] |
||
| 25 | */ |
||
| 26 | private array $mappings; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param array $config |
||
| 30 | */ |
||
| 31 | public function __construct(array $config) |
||
| 32 | { |
||
| 33 | $this->config = $config; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param object $object |
||
| 38 | * |
||
| 39 | * @return void |
||
| 40 | */ |
||
| 41 | public function initialize(object $object): void |
||
| 44 | } |
||
| 45 | |||
| 46 | |||
| 47 | /** |
||
| 48 | * @param object $object |
||
| 49 | * @return Generator |
||
| 50 | * @throws ReflectionException |
||
| 51 | */ |
||
| 52 | private function generateMappings(object $object): Generator |
||
| 67 |