API reference / Quittio \ Core \ Data \ Party
ElectronicAddress
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Party\ElectronicAddress · Source
Electronic address (BT-34 seller, BT-49 buyer) with its EAS scheme. For Peppol, the electronic address is also the participant identifier.
Properties#
| Property | Type | Description |
|---|---|---|
$scheme readonly | ElectronicAddressScheme|RawCode | |
$value readonly | string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
::of() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(string $value, ElectronicAddressScheme|RawCode $scheme)| Parameter | Type | Description |
|---|---|---|
$value | string | |
$scheme | ElectronicAddressScheme|RawCode |
of()#
public static function of(
string $value,
ElectronicAddressScheme|RawCode|string $scheme,
): self| Parameter | Type | Description |
|---|---|---|
$value | string | |
$scheme | ElectronicAddressScheme|RawCode|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