| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function replacePaths( |
||
| 38 | NodeValueInterface $rootNode, |
||
| 39 | NodeValueInterface $newNode, |
||
| 40 | PathInterface ...$paths |
||
| 41 | ): NodeValueInterface { |
||
| 42 | $modifier = new ReplaceMutation($this->valueWalker, $newNode, ...$paths); |
||
| 43 | $events = $this |
||
| 44 | ->valueWalker |
||
| 45 | ->createMutableEventIterator($rootNode, new Path, $modifier); |
||
| 46 | |||
| 47 | return $this |
||
| 48 | ->eventDecoder |
||
| 49 | ->exportExistingEvents($events); |
||
| 50 | } |
||
| 52 |