Zum Inhalt springen

API reference / Quittio \ Core \ Data \ Party

BuyerParty

final readonly class in quittio/core · uses Immutable

Quittio\Core\Data\Party\BuyerParty · Source

Buyer (BG-7).

Properties#

PropertyTypeDescription
$address readonlyAddress
$contact readonly?Contact
$electronicAddress readonly?ElectronicAddress
$identifier readonly?Identifier
$isConsumer readonlybool
$legalRegistration readonly?Identifier
$name readonlystring
$tradingName readonly?string
$vatId readonly?string

Methods#

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

__construct()#

public function __construct(
    string $name,
    Address $address,
    ?string $tradingName = null,
    ?Identifier $identifier = null,
    ?Identifier $legalRegistration = null,
    ?string $vatId = null,
    ?ElectronicAddress $electronicAddress = null,
    ?Contact $contact = null,
    bool $isConsumer = false,
)
ParameterTypeDescription
$namestring
$addressAddress
$tradingName?string = null
$identifier?Identifier = null
$legalRegistration?Identifier = null
$vatId?string = null
$electronicAddress?ElectronicAddress = null
$contact?Contact = null
$isConsumerbool = false

with()#

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

Returns a copy with the given properties replaced.

ParameterTypeDescription
$changesarray<string, mixed>
Returns
static

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.