Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | interface KernelInterface |
||
8 | { |
||
9 | /** |
||
10 | * instanciate |
||
11 | * |
||
12 | * @param string $env |
||
13 | * @param string $path |
||
14 | */ |
||
15 | public function __construct(string $env, string $path); |
||
16 | |||
17 | /** |
||
18 | * set controller namespace |
||
19 | * |
||
20 | * @param string $ctrlNamespace |
||
21 | * @return KernelInterface |
||
22 | */ |
||
23 | public function setNameSpace(string $ctrlNamespace): KernelInterface; |
||
24 | |||
25 | /** |
||
26 | * retrieve kernel instance classname from container |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getBundleClassname(): string; |
||
31 | |||
32 | /** |
||
33 | * run app |
||
34 | * |
||
35 | * @param array $groups |
||
36 | * @return KernelInterface |
||
37 | */ |
||
38 | public function run(array $groups = []): KernelInterface; |
||
39 | |||
40 | /** |
||
41 | * set controller action from router groups |
||
42 | * |
||
43 | * @param array $routerGrps |
||
44 | * @return void |
||
45 | */ |
||
46 | public function setAction(array $routerGrps); |
||
47 | |||
48 | /** |
||
49 | * dispatch response |
||
50 | * |
||
51 | * @return KernelInterface |
||
52 | */ |
||
53 | public function send(): KernelInterface; |
||
54 | |||
55 | /** |
||
56 | * shutdown kernel |
||
57 | * |
||
58 | * @return void |
||
59 | */ |
||
60 | public function shutdown(int $code = 0); |
||
61 | } |
||
62 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.