KernelInterface::run()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Nymfonya\Component\Http\Interfaces;
6
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);
0 ignored issues
show
Documentation introduced by
For interfaces and abstract methods it is generally a good practice to add a @return annotation even if it is just @return void or @return null, so that implementors know what to do in the overridden method.

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.

Loading history...
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