| 1 | <?php |
||
| 11 | class Clockwork |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The Laravel Application. |
||
| 15 | * |
||
| 16 | * @var Application |
||
| 17 | */ |
||
| 18 | protected $app; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create a new Clockwork middleware instance. |
||
| 22 | * |
||
| 23 | * @param Application $app |
||
| 24 | * |
||
| 25 | * @return void |
||
|
|
|||
| 26 | */ |
||
| 27 | public function __construct(Application $app) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Handle an incoming request. |
||
| 34 | * |
||
| 35 | * @param \Illuminate\Http\Request $request |
||
| 36 | * @param \Closure $next |
||
| 37 | * |
||
| 38 | * @return mixed |
||
| 39 | */ |
||
| 40 | public function handle($request, Closure $next) |
||
| 53 | } |
||
| 54 |
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.