API reference / Quittio \ Core \ Data \ Lines
Item
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Lines\Item · Source
Item information (BG-31).
Properties#
| Property | Type | Description |
|---|---|---|
$attributes readonly | list<ItemAttribute> | |
$buyerId readonly | ?string | |
$classifications readonly | list<Classification> | |
$description readonly | ?string | |
$name readonly | string | |
$originCountry readonly | ?string | |
$sellerId readonly | ?string | |
$standardId readonly | ?Identifier |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(
string $name,
?string $description = null,
?string $sellerId = null,
?string $buyerId = null,
?Identifier $standardId = null,
list<Classification> $classifications = [],
?string $originCountry = null,
list<ItemAttribute> $attributes = [],
)| Parameter | Type | Description |
|---|---|---|
$name | string | |
$description | ?string = null | |
$sellerId | ?string = null | |
$buyerId | ?string = null | |
$standardId | ?Identifier = null | |
$classifications | list<Classification> = [] | |
$originCountry | ?string = null | |
$attributes | list<ItemAttribute> = [] |
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