1 | <?php |
||
17 | class RoutineOrganizerCreateJob implements ShouldQueue |
||
18 | { |
||
19 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; |
||
20 | |||
21 | protected $user; |
||
22 | protected $companyToken; |
||
23 | |||
24 | /** |
||
25 | * Create a new job instance. |
||
26 | * |
||
27 | * @return void |
||
|
|||
28 | */ |
||
29 | public function __construct(User $user, $companyToken) |
||
34 | |||
35 | /** |
||
36 | * Execute the job. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function handle() |
||
61 | } |
||
62 |
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.