1 | <?php |
||
14 | class RetryChecker implements ShouldQueue |
||
15 | { |
||
16 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; |
||
17 | |||
18 | public $checker; |
||
19 | |||
20 | /** |
||
21 | * Create a new job instance. |
||
22 | * |
||
23 | * @return void |
||
|
|||
24 | */ |
||
25 | public function __construct(Checker $checker) |
||
29 | |||
30 | /** |
||
31 | * Execute the job. |
||
32 | * |
||
33 | * @return void |
||
34 | */ |
||
35 | public function handle() |
||
41 | } |
||
42 |
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.