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#
| Property | Type | Description |
|---|---|---|
$address readonly | Address | |
$contact readonly | ?Contact | |
$electronicAddress readonly | ?ElectronicAddress | |
$identifier readonly | ?Identifier | |
$isConsumer readonly | bool | |
$legalRegistration readonly | ?Identifier | |
$name readonly | string | |
$tradingName readonly | ?string | |
$vatId readonly | ?string |
Methods#
| Method | Description |
|---|---|
->__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,
)| Parameter | Type | Description |
|---|---|---|
$name | string | |
$address | Address | |
$tradingName | ?string = null | |
$identifier | ?Identifier = null | |
$legalRegistration | ?Identifier = null | |
$vatId | ?string = null | |
$electronicAddress | ?ElectronicAddress = null | |
$contact | ?Contact = null | |
$isConsumer | bool = false |
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