| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 14 | class ProcessUploadedImage implements ShouldQueue |
||
| 15 | { |
||
| 16 | use Dispatchable, |
||
| 17 | InteractsWithQueue, |
||
| 18 | Queueable, |
||
| 19 | SerializesModels, |
||
| 20 | ProcessesImages; |
||
| 21 | |||
| 22 | public bool $deleteWhenMissingModels = true; |
||
| 23 | protected Image $image; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create a new job instance. |
||
| 27 | * |
||
| 28 | * @param Image $image |
||
| 29 | */ |
||
| 30 | public function __construct(Image $image) |
||
| 31 | { |
||
| 32 | $this->image = $image; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Execute the job. |
||
| 37 | * |
||
| 38 | * @param ImageManager $imageManager |
||
| 39 | * |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | public function handle(ImageManager $imageManager) |
||
| 45 | } |
||
| 46 | } |
||
| 47 |