| 1 | <?php  | 
            ||
| 9 | class CookieConsentMiddleware  | 
            ||
| 10 | { | 
            ||
| 11 | /**  | 
            ||
| 12 | * The application implementation.  | 
            ||
| 13 | *  | 
            ||
| 14 | * @var \Illuminate\Contracts\Foundation\Application  | 
            ||
| 15 | */  | 
            ||
| 16 | protected $app;  | 
            ||
| 17 | |||
| 18 | /**  | 
            ||
| 19 | * Create a new middleware instance.  | 
            ||
| 20 | *  | 
            ||
| 21 | * @param \Illuminate\Contracts\Foundation\Application $app  | 
            ||
| 22 | * @return void  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 23 | */  | 
            ||
| 24 | public function __construct(Application $app)  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * Handle an incoming request.  | 
            ||
| 31 | *  | 
            ||
| 32 | * @param \Illuminate\Http\Request $request  | 
            ||
| 33 | * @param \Closure $next  | 
            ||
| 34 | * @return mixed  | 
            ||
| 35 | *  | 
            ||
| 36 | * @throws \Symfony\Component\HttpKernel\Exception\HttpException  | 
            ||
| 37 | */  | 
            ||
| 38 | public function handle($request, Closure $next)  | 
            ||
| 59 | }  | 
            ||
| 60 | 
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.