| Total Complexity | 6 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class KeysWithValue implements KeysWithValueInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var MergeInterface |
||
| 19 | */ |
||
| 20 | private $mergeOperation; |
||
| 21 | |||
| 22 | 1 | public function __construct(MergeInterface $mergeOperation) |
|
| 23 | { |
||
| 24 | 1 | $this->mergeOperation = $mergeOperation; |
|
| 25 | 1 | } |
|
| 26 | |||
| 27 | 5 | public function execute(array $array): array |
|
| 28 | { |
||
| 29 | 5 | return $this->createKeys($array); |
|
| 30 | } |
||
| 31 | |||
| 32 | 5 | private function createKeys(array $array, string $prefix = ''): array |
|
| 45 | } |
||
| 46 | } |
||
| 47 |