Total Complexity | 7 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class CommentConverter implements ConverterInterface, ConfigurationAwareInterface |
||
12 | { |
||
13 | /** @var Configuration */ |
||
14 | protected $config; |
||
15 | |||
16 | public function setConfig(Configuration $config): void |
||
19 | 99 | } |
|
20 | |||
21 | 99 | public function convert(ElementInterface $element): string |
|
28 | } |
||
29 | 6 | ||
30 | /** |
||
31 | 6 | * @return string[] |
|
32 | 3 | */ |
|
33 | public function getSupportedTags(): array |
||
34 | 6 | { |
|
35 | return ['#comment']; |
||
36 | } |
||
37 | |||
38 | private function shouldPreserve(ElementInterface $element): bool |
||
52 | 6 | } |
|
53 | } |
||
54 |