1 | <?php |
||
20 | class UserController implements ContainerInjectableInterface |
||
21 | { |
||
22 | use ContainerInjectableTrait; |
||
23 | |||
24 | |||
25 | |||
26 | /** |
||
27 | * @var $data description |
||
28 | */ |
||
29 | //private $data; |
||
30 | |||
31 | |||
32 | |||
33 | // /** |
||
34 | // * The initialize method is optional and will always be called before the |
||
35 | // * target method/action. This is a convienient method where you could |
||
36 | // * setup internal properties that are commonly used by several methods. |
||
37 | // * |
||
38 | // * @return void |
||
39 | // */ |
||
40 | // public function initialize() : void |
||
41 | // { |
||
42 | // ; |
||
43 | // } |
||
44 | |||
45 | |||
46 | |||
47 | /** |
||
48 | * Description. |
||
49 | * |
||
50 | * @param datatype $variable Description |
||
|
|||
51 | * |
||
52 | * @throws Exception |
||
53 | * |
||
54 | * @return object as a response object |
||
55 | */ |
||
56 | public function indexActionGet() : object |
||
67 | |||
68 | |||
69 | |||
70 | /** |
||
71 | * Description. |
||
72 | * |
||
73 | * @param datatype $variable Description |
||
74 | * |
||
75 | * @throws Exception |
||
76 | * |
||
77 | * @return object as a response object |
||
78 | */ |
||
79 | public function loginAction() : object |
||
91 | |||
92 | /** |
||
93 | * Description. |
||
94 | * |
||
95 | * @param datatype $variable Description |
||
96 | * |
||
97 | * @throws Exception |
||
98 | * |
||
99 | * @return object as a response object |
||
100 | */ |
||
101 | public function createAction() : object |
||
117 | |||
118 | public function viewAction($userId): object |
||
144 | } |
||
145 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.