Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | final class InsertValueBeforeKey implements ModifierInterface |
||
42 | { |
||
43 | /** @var mixed value of any type */ |
||
44 | private $value; |
||
45 | |||
46 | private string $key; |
||
47 | |||
48 | /** |
||
49 | * @param mixed $value value of any type |
||
50 | * @param string $key |
||
51 | */ |
||
52 | 2 | public function __construct($value, string $key) |
|
56 | 2 | } |
|
57 | |||
58 | 2 | public function apply(array $data, $key): array |
|
74 |