Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function deletePaths(NodeValueInterface $rootNode, PathInterface ...$paths): ?NodeValueInterface |
||
26 | { |
||
27 | $modifier = new DeleteMutation(...$paths); |
||
28 | $events = $this |
||
29 | ->walker |
||
30 | ->createMutableEventIterator($rootNode, new Path, $modifier); |
||
31 | |||
32 | return $this |
||
33 | ->eventDecoder |
||
34 | ->exportEvents($events); |
||
35 | } |
||
37 |