ImportProductVerdict
in package
FinalYes
Validator verdict for one `<product>` card and its variants; see {@see ImportItemVerdict}.
Table of Contents
Properties
- $cardBlocked : bool
- $cardIncomplete : bool
- $items : array<string|int, mixed>
- $line : int
- $productId : int|null
Methods
- __construct() : mixed
- hasWritableItem() : bool
- At least one item is to be actually written (create or update, not blocked).
Properties
$cardBlocked read-only
public
bool
$cardBlocked
$cardIncomplete read-only
public
bool
$cardIncomplete
$items read-only
public
array<string|int, mixed>
$items
$line read-only
public
int
$line
$productId read-only
public
int|null
$productId
Methods
__construct()
public
__construct(int $line, bool $cardBlocked, bool $cardIncomplete, int|null $productId, array<int, ImportItemVerdict> $items) : mixed
Parameters
- $line : int
- $cardBlocked : bool
- $cardIncomplete : bool
- $productId : int|null
-
target card in the DB (matching by variant codes or explicit
id);null= it will be created - $items : array<int, ImportItemVerdict>
hasWritableItem()
At least one item is to be actually written (create or update, not blocked).
public
hasWritableItem() : bool