ElectronicAddress
in package
uses
Immutable
Read onlyYes
FinalYes
Electronic address (BT-34 seller, BT-49 buyer) with its EAS scheme.
For Peppol, the electronic address is also the participant identifier.
Table of Contents
Properties
- $scheme : ElectronicAddressScheme|RawCode
- $value : string
Methods
- __construct() : mixed
- of() : self
- with() : static
- Returns a copy with the given properties replaced.
Properties
$scheme
public
ElectronicAddressScheme|RawCode
$scheme
$value
public
string
$value
Methods
__construct()
public
__construct(string $value, ElectronicAddressScheme|RawCode $scheme) : mixed
Parameters
- $value : string
- $scheme : ElectronicAddressScheme|RawCode
of()
public
static of(string $value, ElectronicAddressScheme|RawCode|string $scheme) : self
Parameters
- $value : string
- $scheme : ElectronicAddressScheme|RawCode|string
Return values
selfwith()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>