| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function getMultiLevelDropdownWrapper(MenuItem $item): string |
||
| 45 | { |
||
| 46 | return '<li class="dropdown'.($item->hasActiveOnChild() ? ' active open' : '').'"> |
||
| 47 | <a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
||
| 48 | '.($item->icon ? '<i class="'.$item->icon.'"></i>' : '').' |
||
| 49 | '.$item->title.'<strong class="caret pull-right caret-right"></strong> |
||
| 50 | </a> |
||
| 51 | <ul class="dropdown-menu navmenu-nav"> |
||
| 52 | '.$this->getChildMenuItems($item).' |
||
| 53 | </ul> |
||
| 54 | </li>'; |
||
| 55 | } |
||
| 56 | } |
||
| 57 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.