| Total Complexity | 8 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| 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 | 5 | public function __construct(array $config) |
|
| 32 | { |
||
| 33 | 5 | $this->config = $config; |
|
| 34 | 5 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param object $object |
||
| 38 | * |
||
| 39 | * @return void |
||
| 40 | */ |
||
| 41 | 5 | public function initialize(object $object): void |
|
| 44 | 5 | } |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @param object $object |
||
| 48 | * |
||
| 49 | * @throws ReflectionException |
||
| 50 | * |
||
| 51 | * @return Generator |
||
| 52 | */ |
||
| 53 | 5 | private function generateMappings(object $object): Generator |
|
| 68 |