| 1 | <?php |
||
| 12 | class ControllerActionRouteHandler implements AbstractRouteTypeHandler |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Uses the user input and the route definition to build and return a response for the user. |
||
| 17 | * @param Request $request |
||
| 18 | * @param DynamicRoute $route |
||
| 19 | * @return Response |
||
| 20 | */ |
||
| 21 | public function process(Request $request, DynamicRoute $route) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Checks if the given route object is a valid route that can be handled with this handler. |
||
| 28 | * @param DynamicRoute $route |
||
| 29 | * @return boolean |
||
| 30 | */ |
||
| 31 | public static function isValid(DynamicRoute $route) |
||
| 39 | } |
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.