API reference / Quittio \ Core \ Data \ Extensions
ExtendedParty
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Extensions\ExtendedParty · Source
Additional trade party of profile EXTENDED (invoicer, invoicee, ultimate customer, ship-from, line ship-to).
Properties#
| Property | Type | Description |
|---|---|---|
$address readonly | ?Address | |
$contact readonly | ?Contact | |
$identifiers readonly | list<Identifier> | |
$name 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 = null,
list<Identifier> $identifiers = [],
?string $vatId = null,
?Contact $contact = null,
)| Parameter | Type | Description |
|---|---|---|
$name | string | |
$address | ?Address = null | |
$identifiers | list<Identifier> = [] | |
$vatId | ?string = null | |
$contact | ?Contact = null |
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