1 | <?php |
||
23 | class HtmlRenderer implements ElementRendererInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var Environment |
||
27 | */ |
||
28 | protected $environment; |
||
29 | |||
30 | /** |
||
31 | * @param Environment $environment |
||
32 | */ |
||
33 | 1950 | public function __construct(Environment $environment) |
|
37 | |||
38 | /** |
||
39 | * @param string $option |
||
40 | * @param mixed $default |
||
41 | * |
||
42 | * @return mixed |
||
43 | */ |
||
44 | 1941 | public function getOption($option, $default = null) |
|
48 | |||
49 | /** |
||
50 | * @param AbstractInline $inline |
||
51 | * |
||
52 | * @throws \RuntimeException |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | 1659 | protected function renderInline(AbstractInline $inline) |
|
65 | |||
66 | /** |
||
67 | * @param AbstractInline[] $inlines |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | 1662 | public function renderInlines($inlines) |
|
80 | |||
81 | /** |
||
82 | * @param AbstractBlock $block |
||
83 | * @param bool $inTightList |
||
84 | * |
||
85 | * @throws \RuntimeException |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | 1941 | public function renderBlock(AbstractBlock $block, $inTightList = false) |
|
98 | |||
99 | /** |
||
100 | * @param AbstractBlock[] $blocks |
||
101 | * @param bool $inTightList |
||
102 | * |
||
103 | * @return string |
||
104 | */ |
||
105 | 1941 | public function renderBlocks($blocks, $inTightList = false) |
|
116 | } |
||
117 |