@@ -58,6 +58,9 @@ |
||
58 | 58 | protected $pattern = ""; |
59 | 59 | protected $callable; |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $pattern |
|
63 | + */ |
|
61 | 64 | public function __construct($pattern, $callable) { |
62 | 65 | $this->setPattern($pattern); |
63 | 66 | $this->setCallable($callable); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * |
116 | 116 | * This method need at least 2 arguments: route pattern and callable. |
117 | 117 | * You can create midleware callables which will be executed before the route |
118 | - * @return type |
|
118 | + * @return Router |
|
119 | 119 | */ |
120 | 120 | public function post() { |
121 | 121 | return $this->url(Route::METHOD_POST, func_get_args()); |
@@ -198,6 +198,7 @@ discard block |
||
198 | 198 | |
199 | 199 | /** |
200 | 200 | * Method called when route cant be found |
201 | + * @param \Closure $callback |
|
201 | 202 | */ |
202 | 203 | public function notFound($callback) { |
203 | 204 | $this->errorHandler['notFound'] = $callback; |