| 1 | <?php |
||
| 9 | class CommentConverter implements ConverterInterface, ConfigurationAwareInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Configuration |
||
| 13 | */ |
||
| 14 | protected $config; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param Configuration $config |
||
| 18 | */ |
||
| 19 | 90 | public function setConfig(Configuration $config) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param ElementInterface $element |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | 6 | public function convert(ElementInterface $element) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return string[] |
||
| 39 | */ |
||
| 40 | 90 | public function getSupportedTags() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param ElementInterface $element |
||
| 47 | * |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | 6 | private function shouldPreserve(ElementInterface $element) |
|
| 62 | } |
||
| 63 |