1 | <?php |
||
13 | class SyncModelLanguageMapping implements ShouldQueue |
||
14 | { |
||
15 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; |
||
16 | |||
17 | /** @var \Illuminate\Database\Eloquent\Model */ |
||
18 | public $model; |
||
19 | |||
20 | /** @var string */ |
||
21 | public $language; |
||
22 | |||
23 | /** |
||
24 | * Create a new job instance. |
||
25 | * |
||
26 | * @return void |
||
|
|||
27 | */ |
||
28 | public function __construct(Model $model, string $language) |
||
33 | |||
34 | /** |
||
35 | * Execute the job. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function handle() |
||
43 | } |
||
44 |
Adding a
@return
annotation 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.