API reference / Quittio \ Core \ Data \ Party
Address
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Party\Address · Source
Postal address (BG-5 seller, BG-8 buyer, BG-12 tax representative, BG-15 deliver to).
Business terms: line1 BT-35/50/64/75, line2 BT-36/51/65/76, line3 BT-162/163/164/165, city BT-37/52/66/77, postcode BT-38/53/67/78, subdivision BT-39/54/68/79, country BT-40/55/69/80.
Profile levels (Factur-X/ZUGFeRD): the country code from MINIMUM, the other parts from BASIC WL. The level of the address field raises them (FieldMatrix::level()): in MINIMUM only the seller address (BG-5) exists, with the country code (BT-40) alone; the buyer (BG-8), tax representative (BG-12) and deliver-to (BG-15) addresses start with BASIC WL.
Properties#
| Property | Type | Description |
|---|---|---|
$city readonly | ?string | |
$countryCode readonly | string | |
$line1 readonly | ?string | |
$line2 readonly | ?string | |
$line3 readonly | ?string | |
$postcode readonly | ?string | |
$subdivision readonly | ?string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
::make() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(
string $countryCode,
?string $line1 = null,
?string $line2 = null,
?string $line3 = null,
?string $city = null,
?string $postcode = null,
?string $subdivision = null,
)| Parameter | Type | Description |
|---|---|---|
$countryCode | string | |
$line1 | ?string = null | |
$line2 | ?string = null | |
$line3 | ?string = null | |
$city | ?string = null | |
$postcode | ?string = null | |
$subdivision | ?string = null |
make()#
public static function make(
?string $line1,
?string $postcode,
?string $city,
string $countryCode,
): self| Parameter | Type | Description |
|---|---|---|
$line1 | ?string | |
$postcode | ?string | |
$city | ?string | |
$countryCode | string |
- Returns
self
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