1 | <?php |
||
14 | abstract class AbstractRenderer implements RendererInterface |
||
15 | { |
||
16 | use ArrayAccessAble; |
||
17 | |||
18 | /** |
||
19 | * template function. |
||
20 | * |
||
21 | * @access protected |
||
22 | * @abstract |
||
23 | * @param mixed $template |
||
24 | */ |
||
25 | abstract protected function template($template); |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | abstract public function renderBlock($template, $blockName, $data = []); |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | abstract public function render(ResponseInterface $response, $template, $data = []); |
||
36 | |||
37 | /** |
||
38 | * mergeData function. |
||
39 | * |
||
40 | * @access protected |
||
41 | * @param mixed $data |
||
42 | * @return array |
||
43 | */ |
||
44 | protected function mergeData($data) |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function loadConfig(array $offset) |
||
58 | } |
||
59 |