Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class StartLabelDetection implements ShouldQueue |
||
13 | { |
||
14 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; |
||
|
|||
15 | |||
16 | private string $path; |
||
17 | |||
18 | private ?int $mediaId; |
||
19 | |||
20 | private ?int $minConfidence; |
||
21 | |||
22 | private int $maxResults; |
||
23 | |||
24 | /** |
||
25 | * Create a new job instance. |
||
26 | * |
||
27 | * @param string $path |
||
28 | * @param int|null $mediaId |
||
29 | * @param int|null $minConfidence |
||
30 | * @param int $maxResults |
||
31 | */ |
||
32 | public function __construct(string $path, $mediaId = null, $minConfidence = null, $maxResults = 1000) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Execute the job. |
||
42 | * |
||
43 | * @return void |
||
44 | * @throws \Exception |
||
45 | */ |
||
46 | public function handle() |
||
51 |