| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class TestOperation implements OperationInterface |
||
| 13 | { |
||
| 14 | |||
| 15 | private $index; |
||
| 16 | |||
| 17 | private $pathPointer; |
||
| 18 | |||
| 19 | private $value; |
||
| 20 | |||
| 21 | private $equalComparator; |
||
| 22 | |||
| 23 | 4 | public function __construct( |
|
| 24 | int $index, |
||
| 25 | PointerQueryInterface $pathPointer, |
||
| 26 | NodeValueInterface $value, |
||
| 27 | ComparatorInterface $equalComparator |
||
| 28 | ) { |
||
| 29 | 4 | $this->index = $index; |
|
| 30 | 4 | $this->pathPointer = $pathPointer; |
|
| 31 | 4 | $this->value = $value; |
|
| 32 | 4 | $this->equalComparator = $equalComparator; |
|
| 33 | 4 | } |
|
| 34 | |||
| 35 | 4 | public function apply(NodeValueInterface $input, PointerProcessorInterface $pointerProcessor): NodeValueInterface |
|
| 43 | } |
||
| 44 | |||
| 45 | 4 | private function matches(PointerResultInterface $selectResult): bool |
|
| 52 | } |
||
| 53 | } |
||
| 54 |