Skip to content

API reference / Quittio \ Core \ Data \ Extensions

IncludedProduct

final readonly class in quittio/core · uses Immutable

Quittio\Core\Data\Extensions\IncludedProduct · Source

Component of a set or bundle (profile EXTENDED).

Properties#

PropertyTypeDescription
$description readonly?string
$name readonlystring
$quantity readonly?Brick\Math\BigDecimal
$sellerId readonly?string
$unit readonlyUnitCode|RawCode|null

Methods#

MethodDescription
->__construct()
->with()Returns a copy with the given properties replaced.

__construct()#

public function __construct(
    string $name,
    ?BigDecimal $quantity = null,
    UnitCode|RawCode|null $unit = null,
    ?string $description = null,
    ?string $sellerId = null,
)
ParameterTypeDescription
$namestring
$quantity?Brick\Math\BigDecimal = null
$unitUnitCode|RawCode|null = null
$description?string = null
$sellerId?string = null

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.