@@ -27,7 +27,7 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * Constructor |
| 29 | 29 | * |
| 30 | - * @param string|ConditionInterface $target |
|
| 30 | + * @param string $target |
|
| 31 | 31 | * @param Closure $callable |
| 32 | 32 | */ |
| 33 | 33 | public function __construct( $target, Closure $callable ) { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * Add middleware |
| 49 | 49 | * |
| 50 | 50 | * @param string|callable|\CarbonFramework\Middleware\MiddlewareInterface|array $middleware |
| 51 | - * @return object $this |
|
| 51 | + * @return HasMiddlewareTrait $this |
|
| 52 | 52 | */ |
| 53 | 53 | public function addMiddleware( $middleware ) { |
| 54 | 54 | $middleware = is_array( $middleware ) ? $middleware : [$middleware]; |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * Alias for addMiddleware |
| 68 | 68 | * |
| 69 | 69 | * @param string|callable|\CarbonFramework\Middleware\middlewareInterface|array $middleware |
| 70 | - * @return object $this |
|
| 70 | + * @return HasMiddlewareTrait $this |
|
| 71 | 71 | */ |
| 72 | 72 | public function add( $middleware ) { |
| 73 | 73 | return $this->addMiddleware( $middleware ); |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace CarbonFramework\Routing; |
| 4 | 4 | |
| 5 | +use CarbonFramework\Framework; |
|
| 5 | 6 | use Closure; |
| 6 | 7 | use Exception; |
| 7 | -use CarbonFramework\Framework; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Represent a callable or a controller method to be executed in response to a request |