1 | <?php |
||
8 | class MenuPresenter extends Presenter |
||
9 | { |
||
10 | /** |
||
11 | * Link href target window. |
||
12 | * |
||
13 | * @return string |
||
14 | */ |
||
15 | public function target() |
||
19 | |||
20 | /** |
||
21 | * Indented title against depth. |
||
22 | * |
||
23 | * @param int $start |
||
24 | * @param string $symbol |
||
25 | * @return string |
||
26 | */ |
||
27 | public function indentedTitle($start = 1, $symbol = '— ') |
||
33 | |||
34 | /** |
||
35 | * Generate menu url depending on type the menu. |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function url() |
||
59 | |||
60 | /** |
||
61 | * Get menu link custom style. |
||
62 | * |
||
63 | * @return mixed |
||
64 | */ |
||
65 | public function linkStyle() |
||
69 | |||
70 | /** |
||
71 | * Get menu link title. |
||
72 | * |
||
73 | * @return mixed |
||
74 | */ |
||
75 | public function linkTitle() |
||
79 | } |
||
80 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: