| 1 | <?php | ||
| 12 | class RetryChecker implements ShouldQueue | ||
| 13 | { | ||
| 14 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; | ||
| 15 | |||
| 16 | public $checkerClass; | ||
| 17 | |||
| 18 | /** | ||
| 19 | * Create a new job instance. | ||
| 20 | * | ||
| 21 | * @return void | ||
|  | |||
| 22 | */ | ||
| 23 | public function __construct(string $checkerClass) | ||
| 27 | |||
| 28 | /** | ||
| 29 | * Execute the job. | ||
| 30 | * | ||
| 31 | * @return void | ||
| 32 | */ | ||
| 33 | public function handle() | ||
| 37 | } | ||
| 38 | 
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.