1 | <?php |
||
17 | class TextParser extends BBCodeConverter implements TextParserInterface |
||
18 | { |
||
19 | |||
20 | public function __construct() {} |
||
21 | |||
22 | /** |
||
23 | * @brief Replaces BBCode italic. |
||
24 | */ |
||
25 | protected function replaceItalic() { |
||
37 | |||
38 | /** |
||
39 | * @brief Removes BBCode center. |
||
40 | */ |
||
41 | protected function removeUser() { |
||
54 | |||
55 | /** |
||
56 | * @brief Removes BBCode center. |
||
57 | */ |
||
58 | protected function removePre() { |
||
69 | |||
70 | /** |
||
71 | * @brief Removes BBCode center. |
||
72 | */ |
||
73 | protected function removeHeader() { |
||
86 | |||
87 | public function toMarkdown() |
||
96 | |||
97 | /** |
||
98 | * @param string $message |
||
99 | * |
||
100 | * @return string |
||
101 | */ |
||
102 | public function parse(string $message) |
||
108 | } |