| 1 | <?php |
||
| 12 | class RouteDispatcher |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Finds the needed handler from the registered handlers list and processes the |
||
| 16 | * requests within the handler. |
||
| 17 | * @param Request $request |
||
| 18 | * @param DynamicRoute $route |
||
| 19 | * @return Response |
||
| 20 | * @throws HandlerNotFoundException |
||
| 21 | */ |
||
| 22 | public function dispatchRouteToHandler(Request $request, DynamicRoute $route) |
||
| 26 | } |
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.