1 | <?php |
||
24 | class MiscExtension implements ExtensionInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var BlockParserInterface[] |
||
28 | */ |
||
29 | protected $blockParsers = []; |
||
30 | |||
31 | /** |
||
32 | * @var InlineParserInterface[] |
||
33 | */ |
||
34 | protected $inlineParsers = []; |
||
35 | |||
36 | /** |
||
37 | * @var InlineProcessorInterface[] |
||
38 | */ |
||
39 | protected $inlineProcessers = []; |
||
40 | |||
41 | /** |
||
42 | * @var DocumentProcessorInterface[] |
||
43 | */ |
||
44 | protected $documentProcessors = []; |
||
45 | |||
46 | /** |
||
47 | * @var BlockRendererInterface[] |
||
48 | */ |
||
49 | protected $blockRenderers = []; |
||
50 | |||
51 | /** |
||
52 | * @var InlineRendererInterface[] |
||
53 | */ |
||
54 | protected $inlineRenderers = []; |
||
55 | |||
56 | /** |
||
57 | * Returns a list of block parsers to add to the existing list |
||
58 | * |
||
59 | * @return BlockParserInterface[] |
||
60 | */ |
||
61 | 33 | public function getBlockParsers() |
|
65 | |||
66 | /** |
||
67 | * @param BlockParserInterface $blockParser |
||
68 | * |
||
69 | * @return $this |
||
70 | */ |
||
71 | 6 | public function addBlockParser(BlockParserInterface $blockParser) |
|
77 | |||
78 | /** |
||
79 | * Returns a list of inline parsers to add to the existing list |
||
80 | * |
||
81 | * @return InlineParserInterface[] |
||
82 | */ |
||
83 | 33 | public function getInlineParsers() |
|
87 | |||
88 | /** |
||
89 | * @param InlineParserInterface $inlineParser |
||
90 | * |
||
91 | * @return $this |
||
92 | */ |
||
93 | 15 | public function addInlineParser(InlineParserInterface $inlineParser) |
|
97 | |||
98 | /** |
||
99 | * Returns a list of inline processors to add to the existing list |
||
100 | * |
||
101 | * @return InlineProcessorInterface[] |
||
102 | */ |
||
103 | 33 | public function getInlineProcessors() |
|
107 | |||
108 | /** |
||
109 | * @param InlineProcessorInterface $inlineProcessor |
||
110 | * |
||
111 | * @return $this |
||
112 | */ |
||
113 | 6 | public function addInlineProcessor(InlineProcessorInterface $inlineProcessor) |
|
119 | |||
120 | /** |
||
121 | * @return DocumentProcessorInterface[] |
||
122 | */ |
||
123 | 33 | public function getDocumentProcessors() |
|
127 | |||
128 | /** |
||
129 | * @param DocumentProcessorInterface $documentProcessor |
||
130 | * |
||
131 | * @return $this |
||
132 | */ |
||
133 | 9 | public function addDocumentProcessor(DocumentProcessorInterface $documentProcessor) |
|
139 | |||
140 | /** |
||
141 | * Returns a list of block renderers to add to the existing list |
||
142 | * |
||
143 | * The list keys are the block class names which the corresponding value (renderer) will handle. |
||
144 | * |
||
145 | * @return BlockRendererInterface[] |
||
146 | */ |
||
147 | 33 | public function getBlockRenderers() |
|
151 | |||
152 | /** |
||
153 | * @param string $blockClass |
||
154 | * @param BlockRendererInterface $blockRenderer |
||
155 | * |
||
156 | * @return $this |
||
157 | */ |
||
158 | 9 | public function addBlockRenderer($blockClass, BlockRendererInterface $blockRenderer) |
|
166 | |||
167 | /** |
||
168 | * Returns a list of inline renderers to add to the existing list |
||
169 | * |
||
170 | * The list keys are the inline class names which the corresponding value (renderer) will handle. |
||
171 | * |
||
172 | * @return InlineRendererInterface[] |
||
173 | */ |
||
174 | 33 | public function getInlineRenderers() |
|
178 | |||
179 | /** |
||
180 | * @param string $inlineClass |
||
181 | * @param InlineRendererInterface $inlineRenderer |
||
182 | * |
||
183 | * @return $this |
||
184 | */ |
||
185 | 9 | public function addInlineRenderer($inlineClass, InlineRendererInterface $inlineRenderer) |
|
195 | } |
||
196 |