ImportBundleVerdict
in package
FinalYes
Validator verdict for one `<bundle>`, the counterpart of {@see ImportItemVerdict} for variants.
A bundle has no card or variant, so the verdict is flatter: only the target (setId on update)
and the resulting action.
Table of Contents
Properties
- $action : string
- $blocked : bool
- At least one hard error (incl. an unknown composition item); the bundle is not written at all.
- $code : string|null
- $incomplete : bool
- $line : int
- $newCode : string|null
- Rename via explicit `<bundle id>`: when non-empty, the writer must set `ProductSet.code = $newCode` on the target set (`$setId`, always non-empty). The validator already verified the code belongs to no other set; `null` means the code does not change (matching by code, or `id` with the same code).
- $setId : int|null
Methods
- __construct() : mixed
- isCreate() : bool
- isSkip() : bool
Properties
$action read-only
public
string
$action
$blocked read-only
At least one hard error (incl. an unknown composition item); the bundle is not written at all.
public
bool
$blocked
$code read-only
public
string|null
$code
$incomplete read-only
public
bool
$incomplete
$line read-only
public
int
$line
$newCode read-only
Rename via explicit `<bundle id>`: when non-empty, the writer must set `ProductSet.code = $newCode` on the target set (`$setId`, always non-empty). The validator already verified the code belongs to no other set; `null` means the code does not change (matching by code, or `id` with the same code).
public
string|null
$newCode
= null
$setId read-only
public
int|null
$setId
Methods
__construct()
public
__construct(int $line, string|null $code, string $action, bool $blocked, bool $incomplete, int|null $setId[, string|null $newCode = null ]) : mixed
Parameters
- $line : int
- $code : string|null
- $action : string
- $blocked : bool
- $incomplete : bool
- $setId : int|null
- $newCode : string|null = null
isCreate()
public
isCreate() : bool
Return values
boolisSkip()
public
isSkip() : bool