@@ -52,7 +52,7 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * returns http param for a given key |
| 54 | 54 | * |
| 55 | - * @return array |
|
| 55 | + * @return string |
|
| 56 | 56 | */ |
| 57 | 57 | public function getParam(string $key): string; |
| 58 | 58 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | * |
| 48 | 48 | * @param RouteInterface $route |
| 49 | 49 | * @param array $matches |
| 50 | - * @return RouRouterInterfaceter |
|
| 50 | + * @return RouterInterface |
|
| 51 | 51 | */ |
| 52 | 52 | public function setParams(RouteInterface $route, array $matches): RouterInterface; |
| 53 | 53 | |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Nymfonya\Component\Http\Interfaces; |
| 4 | 4 | |
| 5 | 5 | use Nymfonya\Component\Http\Interfaces\RequestInterface; |
| 6 | -use Nymfonya\Component\Http\Interfaces\RoutesInterface; |
|
| 7 | 6 | use Nymfonya\Component\Http\Interfaces\RouteInterface; |
| 7 | +use Nymfonya\Component\Http\Interfaces\RoutesInterface; |
|
| 8 | 8 | |
| 9 | 9 | interface RouterInterface |
| 10 | 10 | { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Nymfonya\Component\Http\Interfaces; |
| 4 | 4 | |
| 5 | -use Nymfonya\Component\Http\Routes; |
|
| 6 | - |
|
| 7 | 5 | interface RoutesInterface |
| 8 | 6 | { |
| 9 | 7 | /** |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Nymfonya\Component\Http; |
| 4 | 4 | |
| 5 | -use Nymfonya\Component\Http\Interfaces\ResponseInterface; |
|
| 6 | -use Nymfonya\Component\Http\Interfaces\HeadersInterface; |
|
| 7 | 5 | use Nymfonya\Component\Http\Headers; |
| 6 | +use Nymfonya\Component\Http\Interfaces\HeadersInterface; |
|
| 7 | +use Nymfonya\Component\Http\Interfaces\ResponseInterface; |
|
| 8 | 8 | |
| 9 | 9 | class Response implements ResponseInterface |
| 10 | 10 | { |