Total Complexity | 5 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
20 | class MapHelper extends AbstractHelper |
||
21 | { |
||
22 | public function render(Map $map): string |
||
23 | { |
||
24 | return $this->renderHtml($map).$this->renderStylesheet($map).$this->renderJavascript($map); |
||
25 | } |
||
26 | |||
27 | public function renderHtml(Map $map): string |
||
28 | { |
||
29 | return $this->doRender($map, MapEvents::HTML); |
||
30 | } |
||
31 | |||
32 | public function renderStylesheet(Map $map): string |
||
33 | { |
||
34 | return $this->doRender($map, MapEvents::STYLESHEET); |
||
35 | } |
||
36 | |||
37 | public function renderJavascript(Map $map): string |
||
38 | { |
||
39 | return $this->doRender($map, MapEvents::JAVASCRIPT); |
||
40 | } |
||
41 | |||
42 | private function doRender(Map $map, string $eventName): string |
||
47 | } |
||
48 | } |
||
49 |