| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class ReplaceOperation implements OperationInterface |
||
| 11 | { |
||
| 12 | |||
| 13 | private $index; |
||
| 14 | |||
| 15 | private $pathPointer; |
||
| 16 | |||
| 17 | private $value; |
||
| 18 | |||
| 19 | 2 | public function __construct( |
|
| 20 | int $index, |
||
| 21 | PointerQueryInterface $pathPointer, |
||
| 22 | NodeValueInterface $value |
||
| 23 | ) { |
||
| 24 | 2 | $this->index = $index; |
|
| 25 | 2 | $this->pathPointer = $pathPointer; |
|
| 26 | 2 | $this->value = $value; |
|
| 27 | 2 | } |
|
| 28 | |||
| 29 | 2 | public function apply(NodeValueInterface $input, PointerProcessorInterface $pointerProcessor): NodeValueInterface |
|
| 34 | } |
||
| 35 | } |
||
| 36 |