ImportValidationSummary
in package
FinalYes
Dry-run result: how many items would be created, updated and skipped, and how many hard errors (rows are not written) and soft errors (rows are written incomplete and flagged `importIncomplete`) were found.
An item is a variant (ProductSet), not a product card; this is also what
ProductImport::$totalItems counts.
Mutable accumulator filled by ImportValidator in a single pass over the file.
Table of Contents
Properties
- $createCount : int
- $errorCount : int
- Log rows of level `error` (one item can produce several).
- $errorItemCount : int
- Items with at least one hard error; they are not written at all.
- $incompleteItemCount : int
- Items with at least one soft error; they are written incomplete and flagged.
- $infoCount : int
- $productCount : int
- $skipCount : int
- $totalItems : int
- $updateCount : int
- $warningCount : int
- Log rows of level `warning`.
Methods
- toArray() : array<string, int>
Properties
$createCount
public
int
$createCount
= 0
$errorCount
Log rows of level `error` (one item can produce several).
public
int
$errorCount
= 0
$errorItemCount
Items with at least one hard error; they are not written at all.
public
int
$errorItemCount
= 0
$incompleteItemCount
Items with at least one soft error; they are written incomplete and flagged.
public
int
$incompleteItemCount
= 0
$infoCount
public
int
$infoCount
= 0
$productCount
public
int
$productCount
= 0
$skipCount
public
int
$skipCount
= 0
$totalItems
public
int
$totalItems
= 0
$updateCount
public
int
$updateCount
= 0
$warningCount
Log rows of level `warning`.
public
int
$warningCount
= 0
Methods
toArray()
public
toArray() : array<string, int>
Return values
array<string, int> —shape for the report template and the bridge JSON response