1 | <?php |
||
11 | class PushNotificationJob implements ShouldQueue |
||
12 | { |
||
13 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; |
||
14 | |||
15 | protected $deviceTokens; |
||
16 | protected $message; |
||
17 | protected $action; |
||
18 | |||
19 | /** |
||
20 | * Create a new job instance. |
||
21 | * |
||
22 | * @return void |
||
|
|||
23 | */ |
||
24 | public function __construct($deviceTokens, $message, $action) |
||
30 | |||
31 | /** |
||
32 | * Execute the job. |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | public function handle() |
||
42 | } |
||
43 |
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.