| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function asXml(Node $node): string |
||
| 44 | { |
||
| 45 | $writer = new \XMLWriter(); |
||
| 46 | $writer->openMemory(); |
||
| 47 | $writer->setIndent(true); |
||
| 48 | $writer->setIndentString(' '); |
||
| 49 | $writer->startDocument("1.0"); |
||
| 50 | $node->accept(new XmlWritingVisitor($writer, $this->stringifier)); |
||
| 51 | $writer->endDocument(); |
||
| 52 | |||
| 53 | return $writer->outputMemory(); |
||
| 54 | } |
||
| 56 |