| 1 | <?php |
||
| 11 | class Gaming |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The Guard implementation. |
||
| 15 | * |
||
| 16 | * @var Guard |
||
| 17 | */ |
||
| 18 | protected $auth; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The response factory implementation. |
||
| 22 | * |
||
| 23 | * @var ResponseFactory |
||
| 24 | */ |
||
| 25 | protected $response; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Create a new filter instance. |
||
| 29 | * |
||
| 30 | * @param Guard $auth |
||
| 31 | * @param ResponseFactory $response |
||
| 32 | * @return void |
||
|
|
|||
| 33 | */ |
||
| 34 | public function __construct(Guard $auth, |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Handle an incoming request. |
||
| 43 | * |
||
| 44 | * @param \Illuminate\Http\Request $request |
||
| 45 | * @param \Closure $next |
||
| 46 | * |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | public function handle($request, Closure $next) |
||
| 67 | } |
||
| 68 |
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.