1 | <?php |
||
14 | class Kernel implements KernelInterface |
||
15 | { |
||
16 | |||
17 | const PATH_CONFIG = '/../config/'; |
||
18 | |||
19 | use \Nymfonya\Component\Http\Reuse\TKernel; |
||
20 | |||
21 | /** |
||
22 | * instanciate |
||
23 | * |
||
24 | * @param string $env |
||
25 | * @param string $path |
||
26 | */ |
||
27 | 28 | public function __construct(string $env, string $path) |
|
38 | |||
39 | /** |
||
40 | * set controller namespace |
||
41 | * |
||
42 | * @param string $ctrlNamespace |
||
43 | * @return KernelInterface |
||
44 | */ |
||
45 | 28 | public function setNameSpace(string $ctrlNamespace): KernelInterface |
|
50 | |||
51 | /** |
||
52 | * retrieve kernel instance classname from container |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | 1 | public function getBundleClassname(): string |
|
60 | |||
61 | /** |
||
62 | * set pubsub dispatcher |
||
63 | * |
||
64 | * @param Dispatcher $dispatcher |
||
|
|||
65 | * @return KernelInterface |
||
66 | */ |
||
67 | 28 | public function setDispatcher(Dispatcher $dispatcher = null): KernelInterface |
|
76 | |||
77 | /** |
||
78 | * run app |
||
79 | * |
||
80 | * @param array $groups |
||
81 | * @return KernelInterface |
||
82 | */ |
||
83 | 3 | public function run(array $groups = []): KernelInterface |
|
104 | |||
105 | /** |
||
106 | * set controller action from router groups |
||
107 | * |
||
108 | * @param array $routerGrps |
||
109 | * @return void |
||
110 | */ |
||
111 | 10 | public function setAction(array $routerGrps) |
|
115 | |||
116 | /** |
||
117 | * dispatch response |
||
118 | * |
||
119 | * @return KernelInterface |
||
120 | */ |
||
121 | 1 | public function send(): KernelInterface |
|
143 | |||
144 | /** |
||
145 | * shutdown kernel |
||
146 | * |
||
147 | * @return void |
||
148 | */ |
||
149 | 1 | public function shutdown(int $code = 0) |
|
153 | } |
||
154 |
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.