Drive Manifold

IngestRedbookData extends Command
in package

Table of Contents

$description  : string
The console command description.
$map  : array<string|int, mixed>
$queues  : array<string|int, mixed>
$signature  : string
The name and signature of the console command.
$workloadRepository  : WorkloadRepository
__construct()  : mixed
handle()  : bool
Execute the console command.
calculateInsertProgress()  : array<string|int, mixed>
dataPathAccessible()  : bool
waitTimeFormat()  : string

Properties

$description

The console command description.

protected string $description = 'Ingests the nominated Redbook data component(s)'

$map

protected array<string|int, mixed> $map = ['makes' => \App\Collectors\RedbookDataMakes::class, 'families' => \App\Collectors\RedbookDataFamilies::class, 'badges' => \App\Collectors\RedbookDataBadges::class, 'vehicles' => \App\Collectors\RedbookDataVehicles::class, 'mapping' => \App\Collectors\RedbookDataVehicleKeyMapping::class, 'photos' => \App\Collectors\RedbookDataPhotos::class, 'equipment' => \App\Collectors\RedbookDataEquipment::class, 'ciphers' => \App\Collectors\RedbookDataCiphers::class]

$queues

protected array<string|int, mixed> $queues = ['redbook-data-makes', 'redbook-data-families', 'redbook-data-badges', 'redbook-data-vehicles', 'redbook-data-key-mapping', 'redbook-data-photos', 'redbook-data-equipment']

$signature

The name and signature of the console command.

protected string $signature = 'redbook:vehicles:ingest {collectors?* : Which component(s) of the data archive you wish to import eg: "makes families badges" (defaults to all)} {--D|date= : Which month archive you wish to ingest in YYYYMM format eg: 202011 (defaults to current month)} '

Methods

__construct()

public __construct(WorkloadRepository $workloadRepository) : mixed
Parameters
$workloadRepository : WorkloadRepository
Return values
mixed

handle()

Execute the console command.

public handle(Application $app) : bool
Parameters
$app : Application
Return values
bool

calculateInsertProgress()

protected calculateInsertProgress() : array<string|int, mixed>
Return values
array<string|int, mixed>

dataPathAccessible()

protected dataPathAccessible(string $date) : bool
Parameters
$date : string
Return values
bool

waitTimeFormat()

protected waitTimeFormat(int $waitTimeSeconds) : string
Parameters
$waitTimeSeconds : int
Return values
string

Search results