Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class UploadImage implements ShouldQueue |
||
15 | { |
||
16 | use Dispatchable, |
||
17 | InteractsWithQueue, |
||
18 | Queueable, |
||
19 | SerializesModels, |
||
20 | UploadsImages; |
||
21 | |||
22 | public bool $deleteWhenMissingModels = true; |
||
23 | /** |
||
24 | * @var User |
||
25 | */ |
||
26 | private User $user; |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private string $image; |
||
31 | |||
32 | /** |
||
33 | * Create a new job instance. |
||
34 | * |
||
35 | * @param User $user |
||
36 | * @param string $image |
||
37 | */ |
||
38 | public function __construct(User $user, string $image) |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Execute the job. |
||
46 | * |
||
47 | * @param ImageManager $imageManager |
||
48 | * |
||
49 | * @return void |
||
50 | */ |
||
51 | public function handle(ImageManager $imageManager) |
||
63 |