ProcessRedbookPhotoBatch
extends ProcessRedbookBatch
in package
implements
ShouldQueue
Interfaces, Classes, Traits and Enums
- ShouldQueue
Table of Contents
- $tries : int
- The number of times the job may be attempted.
- $importBatch : ImportBatch
- $importId : string
- $progressKey : string
- __construct() : mixed
- Create a new job instance.
- handle() : void
- Execute the job.
- afterBatch() : int
- getProgress() : int|null
- getProgressKey() : string
- incrementProgress() : int
Properties
$tries
The number of times the job may be attempted.
public
int
$tries
= 5
$importBatch
protected
ImportBatch
$importBatch
$importId
protected
string
$importId
$progressKey
protected
string
$progressKey
Methods
__construct()
Create a new job instance.
public
__construct(ImportBatch $importBatch) : mixed
Parameters
- $importBatch : ImportBatch
Return values
mixed —handle()
Execute the job.
public
handle(RedbookVehiclesDatabaseRepositoryContract $vehiclesRepository) : void
Parameters
- $vehiclesRepository : RedbookVehiclesDatabaseRepositoryContract
Tags
Return values
void —afterBatch()
protected
afterBatch(int $rowsInserted) : int
Parameters
- $rowsInserted : int
Return values
int —getProgress()
protected
getProgress() : int|null
Return values
int|null —getProgressKey()
protected
getProgressKey() : string
Return values
string —incrementProgress()
protected
incrementProgress([int $amount = 1 ]) : int
Parameters
- $amount : int = 1
Return values
int —Progress after increment