Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | public function apply(NodeValueInterface $input, PointerProcessorInterface $pointerProcessor): NodeValueInterface |
||
36 | { |
||
37 | $selectResult = $pointerProcessor->select($this->pathPointer, $input); |
||
38 | |||
39 | if ($this->matches($selectResult)) { |
||
40 | return $input; |
||
41 | } |
||
42 | |||
43 | throw new Exception\TestFailedException($this->index, $input, $this->pathPointer->getSource(), $this->value); |
||
44 | } |
||
57 |