| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class UnsetValue implements DataModifierInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var int|string |
||
| 18 | */ |
||
| 19 | private $key; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param int|string $key |
||
| 23 | */ |
||
| 24 | public function __construct($key) |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param int|string $key |
||
| 31 | * @return self |
||
| 32 | */ |
||
| 33 | public function withKey($key): self |
||
| 34 | { |
||
| 35 | $new = clone $this; |
||
| 36 | $new->key = $key; |
||
| 37 | return $new; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function apply(array $data): array |
||
| 44 | } |
||
| 45 | } |
||
| 46 |