| Total Complexity | 7 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class ReplaceValueWhole implements BeforeMergeModifierInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var int|string |
||
| 13 | */ |
||
| 14 | private $key; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param int|string $key |
||
| 18 | */ |
||
| 19 | public function __construct($key) |
||
| 20 | { |
||
| 21 | $this->key = $key; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param int|string $key |
||
| 26 | * @return self |
||
| 27 | */ |
||
| 28 | public function forKey($key): self |
||
| 33 | } |
||
| 34 | |||
| 35 | public function beforeMerge(array $array, array $allArrays): array |
||
| 55 |