| 1 | <?php namespace Modules\User\Presenters; |
||
| 5 | class UserPresenter extends Presenter |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Return the gravatar link for the users email |
||
| 9 | * @param int $size |
||
| 10 | * @return string |
||
| 11 | */ |
||
| 12 | public function gravatar($size = 90) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public function fullname() |
||
| 26 | } |
||
| 27 |
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.