@@ -38,7 +38,6 @@ |
||
38 | 38 | * add headers from a header list as key value |
39 | 39 | * and returns Headers instance |
40 | 40 | * |
41 | - * @param string $key |
|
42 | 41 | * @return Headers |
43 | 42 | */ |
44 | 43 | public function addMany(array $headers): Headers |
@@ -18,13 +18,14 @@ |
||
18 | 18 | |
19 | 19 | /** |
20 | 20 | * instanciate |
21 | + * @return void |
|
21 | 22 | */ |
22 | 23 | public function __construct(); |
23 | 24 | |
24 | 25 | /** |
25 | 26 | * add one header formaly done with given key and content |
26 | 27 | * |
27 | - * @return string |
|
28 | + * @return Headers |
|
28 | 29 | */ |
29 | 30 | public function add(string $key, string $content): Headers; |
30 | 31 |
@@ -28,6 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | /** |
30 | 30 | * instanciate |
31 | + * @return void |
|
31 | 32 | */ |
32 | 33 | public function __construct(); |
33 | 34 | |
@@ -50,7 +51,7 @@ discard block |
||
50 | 51 | /** |
51 | 52 | * returns http param for a given key |
52 | 53 | * |
53 | - * @return array |
|
54 | + * @return string |
|
54 | 55 | */ |
55 | 56 | public function getParam(string $key): string; |
56 | 57 |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Nymfonya\Component\Http\Interfaces; |
4 | 4 | |
5 | -use Nymfonya\Component\Http\Response; |
|
6 | 5 | use Nymfonya\Component\Http\Headers; |
7 | 6 | use Nymfonya\Component\Http\Interfaces\IStatus; |
7 | +use Nymfonya\Component\Http\Response; |
|
8 | 8 | |
9 | 9 | interface IResponse extends IStatus |
10 | 10 | { |
@@ -8,6 +8,7 @@ |
||
8 | 8 | * instanciate |
9 | 9 | * |
10 | 10 | * @param string $routeItem |
11 | + * @return void |
|
11 | 12 | */ |
12 | 13 | public function __construct(string $routeItem); |
13 | 14 |
@@ -14,8 +14,9 @@ |
||
14 | 14 | /** |
15 | 15 | * instanciate |
16 | 16 | * |
17 | - * @param array $routes |
|
17 | + * @param IRoutes $routes |
|
18 | 18 | * @param IRequest $request |
19 | + * @return Router |
|
19 | 20 | */ |
20 | 21 | public function __construct(IRoutes $routes, IRequest $request); |
21 | 22 |
@@ -10,6 +10,7 @@ |
||
10 | 10 | * instanciate |
11 | 11 | * |
12 | 12 | * @param array $routes |
13 | + * @return Routes |
|
13 | 14 | */ |
14 | 15 | public function __construct(array $routes); |
15 | 16 |
@@ -46,7 +46,6 @@ |
||
46 | 46 | /** |
47 | 47 | * run app |
48 | 48 | * |
49 | - * @param array $routerGroups |
|
50 | 49 | * @return Kernel |
51 | 50 | */ |
52 | 51 | public function run(array $groups = []): Kernel |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Nymfonya\Component\Http; |
4 | 4 | |
5 | -use Nymfonya\Component\Http\Response; |
|
6 | 5 | use Nymfonya\Component\Http\Headers; |
6 | +use Nymfonya\Component\Http\Response; |
|
7 | 7 | |
8 | 8 | class Kernel |
9 | 9 | { |
@@ -56,7 +56,6 @@ |
||
56 | 56 | * Run middleware around core function and pass an |
57 | 57 | * object through it |
58 | 58 | * |
59 | - * @param Container $container |
|
60 | 59 | * @param Closure $core |
61 | 60 | * @return mixed |
62 | 61 | */ |