1 | <?php |
||
12 | class RedirectRouteHandler 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) |
||
28 | |||
29 | /** |
||
30 | * Checks if the given route object is a valid route that can be handled with this handler. |
||
31 | * @param DynamicRoute $route |
||
32 | * @return boolean |
||
33 | */ |
||
34 | public static function isValid(DynamicRoute $route) |
||
42 | } |
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@property
annotation 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.