Completed
Push — master ( 949f98...8a98eb )
by Alejandro
11:04
created
src/Route.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Router.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.