Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | final class TableOfContentsPlaceholderRenderer implements NodeRendererInterface, XmlNodeRendererInterface |
||
22 | { |
||
23 | /** |
||
24 | * {@inheritDoc} |
||
25 | */ |
||
26 | 3 | public function render(Node $node, ChildNodeRendererInterface $childRenderer) |
|
27 | { |
||
28 | 3 | return '<!-- table of contents -->'; |
|
29 | } |
||
30 | |||
31 | 3 | public function getXmlTagName(Node $node): string |
|
32 | { |
||
33 | 3 | return 'table_of_contents_placeholder'; |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return array<string, scalar> |
||
38 | */ |
||
39 | 3 | public function getXmlAttributes(Node $node): array |
|
42 | } |
||
43 | } |
||
44 |