ImportBatch
in package
Uses
SerializesCollections
Table of Contents
- $batchSize : int
- $data : Collection
- $endRow : int
- $importId : string
- $importLimit : int
- $startRow : int
- $totalRows : int
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- Prepare the instance values for serialization.
- __unserialize() : void
- Restore the model after serialization.
- getBatchSize() : int
- getData() : Collection
- getEndRow() : int
- getImportId() : string
- getImportLimit() : int
- getStartRow() : int
- getTotalRows() : int
- isLastBatch() : bool
- getPropertyValue() : mixed
- Get the property value for the given property.
- getRestoredPropertyValue() : mixed
- Get the restored property value.
- getSerializedPropertyValue() : mixed
- Get the serialized property value.
Properties
$batchSize
protected
int
$batchSize
$data
protected
Collection
$data
$endRow
protected
int
$endRow
$importId
protected
string
$importId
$importLimit
protected
int
$importLimit
$startRow
protected
int
$startRow
$totalRows
protected
int
$totalRows
Methods
__construct()
public
__construct(string $importId, Collection $data, int $startRow, int $endRow, int $totalRows, int $batchSize, int $importLimit) : mixed
Parameters
- $importId : string
- $data : Collection
- $startRow : int
- $endRow : int
- $totalRows : int
- $batchSize : int
- $importLimit : int
Return values
mixed —__serialize()
Prepare the instance values for serialization.
public
__serialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —__unserialize()
Restore the model after serialization.
public
__unserialize(array<string|int, mixed> $values) : void
Parameters
- $values : array<string|int, mixed>
Tags
Return values
void —getBatchSize()
public
getBatchSize() : int
Return values
int —getData()
public
getData() : Collection
Return values
Collection —getEndRow()
public
getEndRow() : int
Return values
int —getImportId()
public
getImportId() : string
Return values
string —getImportLimit()
public
getImportLimit() : int
Return values
int —getStartRow()
public
getStartRow() : int
Return values
int —getTotalRows()
public
getTotalRows() : int
Return values
int —isLastBatch()
public
isLastBatch() : bool
Return values
bool —getPropertyValue()
Get the property value for the given property.
protected
getPropertyValue(ReflectionProperty $property) : mixed
Parameters
- $property : ReflectionProperty
Return values
mixed —getRestoredPropertyValue()
Get the restored property value.
protected
getRestoredPropertyValue(string $property, mixed $value) : mixed
Parameters
- $property : string
- $value : mixed
Tags
Return values
mixed —getSerializedPropertyValue()
Get the serialized property value.
protected
getSerializedPropertyValue(mixed $value) : mixed
Parameters
- $value : mixed