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 |
||
26 | public function deletePaths(NodeValueInterface $rootNode, PathInterface ...$paths): ?NodeValueInterface |
||
27 | { |
||
28 | $modifier = new DeleteMutation(...$paths); |
||
29 | $events = $this |
||
30 | ->valueWalker |
||
31 | ->createMutableEventIterator($rootNode, new Path(), $modifier); |
||
32 | |||
33 | return $this |
||
34 | ->eventDecoder |
||
35 | ->exportEvents($events); |
||
36 | } |
||
53 |