Skip to content

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#

PropertyTypeDescription
$attributes readonlylist<ItemAttribute>
$buyerId readonly?string
$classifications readonlylist<Classification>
$description readonly?string
$name readonlystring
$originCountry readonly?string
$sellerId readonly?string
$standardId readonly?Identifier

Methods#

MethodDescription
->__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 = [],
)
ParameterTypeDescription
$namestring
$description?string = null
$sellerId?string = null
$buyerId?string = null
$standardId?Identifier = null
$classificationslist<Classification> = []
$originCountry?string = null
$attributeslist<ItemAttribute> = []

with()#

public function with(array<string, mixed> $changes): static

Returns a copy with the given properties replaced.

ParameterTypeDescription
$changesarray<string, mixed>
Returns
static

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.