API reference / Quittio \ Core \ Data \ Lines
Classification
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Lines\Classification · Source
Item classification identifier (BT-158) with scheme (BT-158-1) and scheme version (BT-158-2), e.g. eCl@ss, UNSPSC, CPV or customs tariff numbers.
Properties#
| Property | Type | Description |
|---|---|---|
$code readonly | string | |
$listId readonly | ItemClassificationScheme|RawCode | |
$listVersion readonly | ?string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(
string $code,
ItemClassificationScheme|RawCode $listId,
?string $listVersion = null,
)| Parameter | Type | Description |
|---|---|---|
$code | string | |
$listId | ItemClassificationScheme|RawCode | |
$listVersion | ?string = null |
with()#
public function with(array<string, mixed> $changes): staticReturns a copy with the given properties replaced.
| Parameter | Type | Description |
|---|---|---|
$changes | array<string, mixed> |
- Returns
static