1 | <?php |
||
11 | class IndexModel implements ShouldQueue |
||
12 | { |
||
13 | use InteractsWithQueue, Queueable, SerializesModels; |
||
14 | |||
15 | public $model, $params, $operation; |
||
|
|||
16 | /** |
||
17 | * Create a new job instance. |
||
18 | * |
||
19 | * @return void |
||
20 | */ |
||
21 | public function __construct($model, $params, $operation) |
||
27 | |||
28 | /** |
||
29 | * Execute the job. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function handle() |
||
38 | } |
||
39 |
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.