1 | <?php |
||
12 | class Kernel implements KernelInterface |
||
13 | { |
||
14 | |||
15 | const PATH_CONFIG = '/../config/'; |
||
16 | |||
17 | use \Nymfonya\Component\Http\Reuse\TKernel; |
||
18 | |||
19 | /** |
||
20 | * instanciate |
||
21 | * |
||
22 | * @param string $env |
||
23 | * @param string $path |
||
24 | */ |
||
25 | 28 | public function __construct(string $env, string $path) |
|
36 | |||
37 | /** |
||
38 | * set controller namespace |
||
39 | * |
||
40 | * @param string $ctrlNamespace |
||
41 | * @return KernelInterface |
||
42 | */ |
||
43 | 28 | public function setNameSpace(string $ctrlNamespace): KernelInterface |
|
48 | |||
49 | /** |
||
50 | * retrieve kernel instance classname from container |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | 1 | public function getBundleClassname(): string |
|
58 | |||
59 | /** |
||
60 | * set pubsub dispatcher |
||
61 | * |
||
62 | * @param Dispatcher $dispatcher |
||
|
|||
63 | * @return KernelInterface |
||
64 | */ |
||
65 | 28 | public function setDispatcher(Dispatcher $dispatcher = null): KernelInterface |
|
74 | |||
75 | /** |
||
76 | * run app |
||
77 | * |
||
78 | * @param array $groups |
||
79 | * @return KernelInterface |
||
80 | */ |
||
81 | 3 | public function run(array $groups = []): KernelInterface |
|
102 | |||
103 | /** |
||
104 | * set controller action from router groups |
||
105 | * |
||
106 | * @param array $routerGrps |
||
107 | * @return void |
||
108 | */ |
||
109 | 10 | public function setAction(array $routerGrps) |
|
113 | |||
114 | /** |
||
115 | * dispatch response |
||
116 | * |
||
117 | * @return KernelInterface |
||
118 | */ |
||
119 | 1 | public function send(): KernelInterface |
|
141 | |||
142 | /** |
||
143 | * shutdown kernel |
||
144 | * |
||
145 | * @return void |
||
146 | */ |
||
147 | 1 | public function shutdown(int $code = 0) |
|
151 | } |
||
152 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.