Interfaces, Classes, Traits and Enums
- WithHeadingRow
- WithQueuedChunkReading
- WithBatching
- ShouldQueueInsert
Table of Contents
-
$currentRow
: CsvRow
-
$id
: string
-
$job
: string
-
$output
: OutputStyle|null
-
$rows
: Collection
-
$rowsRead
: int
-
$totalRows
: int
-
__construct()
: mixed
-
__sleep()
: array<string|int, string>
-
batchSize()
: int
-
chunkSize()
: int
-
getConsoleOutput()
: OutputStyle|null
-
getRows()
: Collection
-
import()
: PendingBatch|void
-
onRow()
: RedbookDataImport|void
-
read()
: void
-
rules()
: array<string|int, mixed>
-
setNoOutput()
: $this
-
withOutput()
: $this
-
dispatch()
: void
-
flush()
: void
-
getChunkIndex()
: int
-
getCurrentRow()
: CsvRow
-
getRowNumber()
: int
-
getTotalRows()
: int
-
importChunked()
: PendingBatch|null
-
shouldFlush()
: bool
$currentRow
protected
CsvRow
$currentRow
$id
protected
string
$id
$job
protected
string
$job
= \App\Jobs\ProcessRedbookVehicleBatch::class
$output
protected
OutputStyle|null
$output
= NULL
$rows
protected
Collection
$rows
$rowsRead
protected
int
$rowsRead
= 0
$totalRows
protected
int
$totalRows
__construct()
public
__construct() : mixed
Return values
mixed
—
__sleep()
public
__sleep() : array<string|int, string>
Return values
array<string|int, string>
—
batchSize()
public
batchSize() : int
Return values
int
—
chunkSize()
public
chunkSize() : int
Return values
int
—
getConsoleOutput()
public
getConsoleOutput() : OutputStyle|null
Return values
OutputStyle|null
—
getRows()
public
getRows() : Collection
Return values
Collection
—
import()
public
import(RedbookDataReader $redbookDataReader) : PendingBatch|void
Parameters
-
$redbookDataReader
: RedbookDataReader
-
-
throws
-
Exception
-
throws
-
SyntaxError
Return values
PendingBatch|void
—
onRow()
public
onRow(CsvRow $row) : RedbookDataImport|void
Parameters
-
$row
: CsvRow
-
Return values
RedbookDataImport|void
—
read()
public
read(RedbookDataReader $redbookDataReader[, Statement|null $statement = null ]) : void
Parameters
-
$redbookDataReader
: RedbookDataReader
-
-
$statement
: Statement|null
= null
-
-
throws
-
Exception
-
throws
-
SyntaxError
Return values
void
—
rules()
public
rules() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
setNoOutput()
public
setNoOutput() : $this
Return values
$this
—
withOutput()
public
withOutput(OutputStyle $output) : $this
Parameters
-
$output
: OutputStyle
-
Return values
$this
—
dispatch()
protected
dispatch(ImportBatch $importBatch) : void
Parameters
-
$importBatch
: ImportBatch
-
Return values
void
—
flush()
protected
flush() : void
Return values
void
—
getChunkIndex()
protected
getChunkIndex() : int
Return values
int
—
getCurrentRow()
protected
getCurrentRow() : CsvRow
Return values
CsvRow
—
getRowNumber()
protected
getRowNumber() : int
Return values
int
—
getTotalRows()
protected
getTotalRows() : int
Return values
int
—
importChunked()
protected
importChunked(RedbookDataReader $redbookDataReader) : PendingBatch|null
Parameters
-
$redbookDataReader
: RedbookDataReader
-
-
throws
-
Exception
-
throws
-
SyntaxError
Return values
PendingBatch|null
—
shouldFlush()
protected
shouldFlush() : bool
Return values
bool
—