| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function render(Node $node, ChildNodeRendererInterface $childRenderer): string |
||
| 27 | { |
||
| 28 | if (! ($node instanceof Document)) { |
||
| 29 | throw new \InvalidArgumentException('Incompatible node type: ' . \get_class($node)); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $childRenderer->renderNodes($node->children()); |
||
| 33 | } |
||
| 35 |