1 | <?php |
||
15 | class UnorderedListPresenter implements MenuPresenter |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @var \Iatstuti\SimpleMenu\Menu |
||
20 | */ |
||
21 | protected $menu; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * UnorderedListPresenter constructor. |
||
26 | * |
||
27 | * @param \Iatstuti\SimpleMenu\Menu $menu |
||
28 | */ |
||
29 | public function __construct(Menu $menu) |
||
33 | |||
34 | /** |
||
35 | * Render the given menu as an unordered list. |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function render() |
||
62 | } |
||
63 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write 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.