API reference / Quittio \ Core \ Enums
IdentifierScheme
string-backed enum in quittio/core · uses HasLabel
Quittio\Core\Enums\IdentifierScheme · Source
Identifier scheme (ISO/IEC 6523 ICD), e.g. for BT-29, BT-46, BT-157. Further codes can be used as RawCode.
Cases#
| Case | Value | Description |
|---|---|---|
Siren | '0002' | |
SwedishOrganisationNumber | '0007' | |
Siret | '0009' | |
Duns | '0060' | |
Gln | '0088' | |
DutchKvk | '0106' | |
Gtin | '0160' | |
DanishCvr | '0184' | |
DutchOin | '0190' | |
NorwegianOrganisationNumber | '0192' | |
LeitwegId | '0204' | |
BelgianEnterpriseNumber | '0208' |
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