| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function getMenuWithDropDownWrapper(MenuItem $item, bool $specialSidebar = false): string |
||
| 23 | { |
||
| 24 | return $specialSidebar |
||
| 25 | ? $this->getHeaderWrapper($item).$this->getChildMenuItems($item) |
||
| 26 | : '<li class="dropdown pull-right"> |
||
| 27 | <a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
||
| 28 | '.($item->icon ? '<i class="'.$item->icon.'"></i>' : '').' |
||
|
|
|||
| 29 | '.$item->title.'<strong class="caret"></strong> |
||
| 30 | </a> |
||
| 31 | <ul class="dropdown-menu"> |
||
| 32 | '.$this->getChildMenuItems($item).' |
||
| 33 | </ul> |
||
| 34 | </li>'; |
||
| 35 | } |
||
| 36 | } |
||
| 37 |
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.