Total Complexity | 8 |
Total Lines | 67 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
8 | class ZurbMenuPresenter extends Presenter |
||
9 | { |
||
10 | /** |
||
11 | * {@inheritdoc } |
||
12 | */ |
||
13 | public function getOpenTagWrapper(): ?string |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc } |
||
21 | */ |
||
22 | public function getCloseTagWrapper(): ?string |
||
23 | { |
||
24 | return PHP_EOL . '</ul></nav>' . PHP_EOL; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc } |
||
29 | */ |
||
30 | public function getMenuWithoutDropdownWrapper(MenuItemContract $item): ?string |
||
31 | { |
||
32 | return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '">' . $item->title . '</a></li>'; |
||
|
|||
33 | } |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc } |
||
37 | */ |
||
38 | public function getActiveState(MenuItemContract $item): ?string |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc } |
||
45 | */ |
||
46 | public function getDividerWrapper(): ?string |
||
47 | { |
||
48 | return '<li class="divider"></li>'; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc } |
||
53 | */ |
||
54 | public function getMenuWithDropDownWrapper(MenuItemContract $item): ?string |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc } |
||
66 | */ |
||
67 | public function getMultiLevelDropdownWrapper($item): string |
||
77 |