@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Set the raw data of the request |
| 29 | - * @param mixed $content |
|
| 29 | + * @param string $content |
|
| 30 | 30 | */ |
| 31 | 31 | public function setContent($content) |
| 32 | 32 | { |
@@ -35,7 +35,6 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * Set the raw data of the request |
| 38 | - * @param mixed $content |
|
| 39 | 38 | */ |
| 40 | 39 | public function getContent() |
| 41 | 40 | { |
@@ -110,8 +110,8 @@ |
||
| 110 | 110 | /** |
| 111 | 111 | * Run the current route |
| 112 | 112 | * |
| 113 | - * @param \React\Http\Request $request |
|
| 114 | - * @param \React\Restify\Response $response |
|
| 113 | + * @param Request $request |
|
| 114 | + * @param Response $response |
|
| 115 | 115 | * @param Callable $next |
| 116 | 116 | * |
| 117 | 117 | * @return Void |
@@ -74,8 +74,9 @@ discard block |
||
| 74 | 74 | * Create a new group of routes |
| 75 | 75 | * |
| 76 | 76 | * @param String $prefix prefix of thes routes |
| 77 | + * @param callable $callback |
|
| 77 | 78 | * |
| 78 | - * @return \CapMousse\ReactRestify\Routing\Group |
|
| 79 | + * @return Routes |
|
| 79 | 80 | */ |
| 80 | 81 | public function addGroup($prefix, $callback) |
| 81 | 82 | { |
@@ -87,8 +88,8 @@ discard block |
||
| 87 | 88 | /** |
| 88 | 89 | * Launch the route parsing |
| 89 | 90 | * |
| 90 | - * @param \React\Http\Request $request |
|
| 91 | - * @param \React\Restify\Response $response |
|
| 91 | + * @param Request $request |
|
| 92 | + * @param Response $response |
|
| 92 | 93 | * |
| 93 | 94 | * @throws \RuntimeException |
| 94 | 95 | * @return Void |
@@ -112,8 +113,8 @@ discard block |
||
| 112 | 113 | * Try to match the current uri with all routes |
| 113 | 114 | * |
| 114 | 115 | * |
| 115 | - * @param \React\Http\Request $request |
|
| 116 | - * @param \React\Restify\Response $response |
|
| 116 | + * @param Request $request |
|
| 117 | + * @param Response $response |
|
| 117 | 118 | * |
| 118 | 119 | * @throws \RuntimeException |
| 119 | 120 | * @return Void |
@@ -51,8 +51,8 @@ |
||
| 51 | 51 | /** |
| 52 | 52 | * Parse request from user |
| 53 | 53 | * |
| 54 | - * @param \React\Http\Request $HttpRequest |
|
| 55 | - * @param \React\Http\Response $HttpResponse |
|
| 54 | + * @param \React\Http\Request $httpRequest |
|
| 55 | + * @param \React\Http\Response $httpResponse |
|
| 56 | 56 | */ |
| 57 | 57 | public function __invoke(HttpRequest $httpRequest, HttpResponse $httpResponse) |
| 58 | 58 | { |