| 1 | <?php |
||
| 5 | class RequestHandled |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The request instance. |
||
| 9 | * |
||
| 10 | * @var \Illuminate\Http\Request |
||
| 11 | */ |
||
| 12 | public $request; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The response instance. |
||
| 16 | * |
||
| 17 | * @var \Illuminate\Http\Response |
||
| 18 | */ |
||
| 19 | public $response; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new event instance. |
||
| 23 | * |
||
| 24 | * @param \Illuminate\Http\Request $request |
||
| 25 | * @param \Illuminate\Http\Response $response |
||
| 26 | * |
||
| 27 | * @return void |
||
|
|
|||
| 28 | */ |
||
| 29 | public function __construct($request, $response) |
||
| 34 | } |
||
| 35 |
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.