API reference / Quittio \ Core \ Enums
ElectronicAddressScheme
string-backed enum in quittio/core · uses HasLabel
Quittio\Core\Enums\ElectronicAddressScheme · Source
Electronic address scheme (BT-34-1, BT-49-1), CEF EAS code list. Further codes can be used as RawCode.
Cases#
| Case | Value | Description |
|---|---|---|
Email | 'EM' | |
Siren | '0002' | |
SwedishOrganisationNumber | '0007' | |
Siret | '0009' | |
Duns | '0060' | |
Gln | '0088' | |
DutchKvk | '0106' | |
DanishCvr | '0184' | |
DutchOin | '0190' | |
NorwegianOrganisationNumber | '0192' | |
LeitwegId | '0204' | |
BelgianEnterpriseNumber | '0208' | |
AustrianVatNumber | '9914' | |
AustrianOrganisationNumber | '9915' | |
GermanVatNumber | '9930' | |
FrenchVatNumber | '9957' |
Methods#
| Method | Description |
|---|---|
::isValidCode() | Whether a raw code value is valid according to the official code list. |
->label() | |
::labelGroup() |
isValidCode()#
public static function isValidCode(string $code): boolWhether a raw code value is valid according to the official code list.
| Parameter | Type | Description |
|---|---|---|
$code | string |
- Returns
bool
label()#
public function label(?string $locale = null): string| Parameter | Type | Description |
|---|---|---|
$locale | ?string = null |
- Returns
string
labelGroup()#
public static function labelGroup(): string- Returns
string