| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function export(): string |
||
| 13 | { |
||
| 14 | \assert($this->node instanceof Text); |
||
| 15 | $output = $this->node->getText(); |
||
|
|
|||
| 16 | |||
| 17 | foreach ($this->node->getMarks() as $mark) { |
||
| 18 | $class = self::NODE_MAPPING[$mark::class]; |
||
| 19 | $exporter = new $class($mark, $output); |
||
| 20 | $output = $exporter->export(); |
||
| 21 | } |
||
| 22 | |||
| 23 | return $output; |
||
| 24 | } |
||
| 26 |