Total Complexity | 8 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Flatten implements FlattenInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var MergeInterface |
||
19 | */ |
||
20 | private $arrayMergeOperation; |
||
21 | |||
22 | 1 | public function __construct(MergeInterface $arrayMergeOperation) |
|
23 | { |
||
24 | 1 | $this->arrayMergeOperation = $arrayMergeOperation; |
|
25 | 1 | } |
|
26 | |||
27 | /** |
||
28 | * @throws \RuntimeException |
||
29 | */ |
||
30 | 7 | public function execute(array $array): array |
|
41 | } |
||
42 | } |
||
43 | |||
44 | 6 | private function flattenValue($value, array &$result): void |
|
59 |