| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 56 | final class UnsetValue extends Modifier implements DataModifierInterface |
||
| 57 | { |
||
| 58 | /** |
||
| 59 | * @var int|string |
||
| 60 | */ |
||
| 61 | private $key; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param int|string $key |
||
| 65 | */ |
||
| 66 | 8 | public function __construct($key) |
|
| 69 | 8 | } |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @param int|string $key |
||
| 73 | * |
||
| 74 | * @return self |
||
| 75 | */ |
||
| 76 | 1 | public function withKey($key): self |
|
| 77 | { |
||
| 78 | 1 | $new = clone $this; |
|
| 79 | 1 | $new->key = $key; |
|
| 80 | 1 | return $new; |
|
| 81 | } |
||
| 82 | |||
| 83 | 6 | public function apply(array $data): array |
|
| 87 | } |
||
| 88 | } |
||
| 89 |