1 | <?php |
||
15 | class RouteViewerRoutes extends RouteRegistrar |
||
16 | { |
||
17 | /* ----------------------------------------------------------------- |
||
18 | | Main Methods |
||
19 | | ----------------------------------------------------------------- |
||
20 | */ |
||
21 | |||
22 | /** |
||
23 | * Map routes. |
||
24 | */ |
||
25 | 72 | public function map(): void |
|
32 | |||
33 | /* ----------------------------------------------------------------- |
||
34 | | Other Methods |
||
35 | | ----------------------------------------------------------------- |
||
36 | */ |
||
37 | |||
38 | /** |
||
39 | * Get the route attributes. |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | 72 | private function getRouteAttributes(): array |
|
51 | } |
||
52 |
If you implement
__call
and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__call
is implemented by a parent class and only the child class knows which methods exist: