| 1 | <?php |
||
| 18 | class WelcomeController extends Controller |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | public function indexAction() |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function visualsAction() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param WelcomeRequest $request |
||
| 40 | * |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | public function submitAction(WelcomeRequest $request) |
||
| 57 | } |
||
| 58 |
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.