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