| 1 | <?php |
||
| 24 | class Clockwork |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * The Laravel Application. |
||
| 28 | * |
||
| 29 | * @var Application |
||
| 30 | */ |
||
| 31 | protected $app; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Create a new middleware instance. |
||
| 35 | * |
||
| 36 | * @param Application $app |
||
| 37 | * |
||
| 38 | * @return void |
||
|
|
|||
| 39 | */ |
||
| 40 | public function __construct(Application $app) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Handle an incoming request. |
||
| 47 | * |
||
| 48 | * @param \Illuminate\Http\Request $request |
||
| 49 | * @param \Closure $next |
||
| 50 | * |
||
| 51 | * @return mixed |
||
| 52 | */ |
||
| 53 | public function handle($request, Closure $next) |
||
| 70 | } |
||
| 71 |
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.