| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class ReplaceValue implements ModifierInterface |
||
| 8 | { |
||
| 9 | private $key = null; |
||
| 10 | private $value = null; |
||
| 11 | |||
| 12 | public function apply(array $data): array |
||
| 18 | } |
||
| 19 | |||
| 20 | public function forKey($key): self |
||
| 21 | { |
||
| 22 | $new = clone $this; |
||
| 23 | $new->key = $key; |
||
| 24 | return $new; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function toValue($value): self |
||
| 32 | } |
||
| 33 | } |
||
| 34 |