| 1 | <?php |
||
| 10 | class Authorisation |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The Guard implementation. |
||
| 14 | * |
||
| 15 | * @var Guard |
||
| 16 | */ |
||
| 17 | protected $auth; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create a new filter instance. |
||
| 21 | * |
||
| 22 | * @param Guard $auth |
||
| 23 | * @return void |
||
|
|
|||
| 24 | */ |
||
| 25 | public function __construct(Guard $auth) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Handle an incoming request. |
||
| 32 | * |
||
| 33 | * @param \Illuminate\Http\Request $request |
||
| 34 | * @param \Closure $next |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | public function handle(\Illuminate\Http\Request $request, Closure $next) |
||
| 46 | } |
||
| 47 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.