API reference / Quittio \ Core \ Standards
StandardVersion
string-backed enum in quittio/core
Quittio\Core\Standards\StandardVersion · Source
Version of the semantic standard EN 16931-1.
Cases#
| Case | Value | Description |
|---|---|---|
En16931_2017 | 'en16931-2017' | |
En16931_2026 | 'en16931-2026' |
Methods#
| Method | Description |
|---|---|
::default() | The version used when none is chosen: EN 16931:2017. |
::fromSpecificationId() | The version of a specification identifier (BT-24): EN 16931:2026 for identifiers that start with its URN, otherwise EN 16931:2017. |
->specificationId() | Specification identifier (BT-24) of the plain EN 16931 invoice in this version, e.g. "urn:cen.eu:en16931:2017". |
default()#
public static function default(): selfThe version used when none is chosen: EN 16931:2017.
- Returns
self
fromSpecificationId()#
public static function fromSpecificationId(?string $specificationId): selfThe version of a specification identifier (BT-24): EN 16931:2026 for identifiers that start with its URN, otherwise EN 16931:2017.
| Parameter | Type | Description |
|---|---|---|
$specificationId | ?string |
- Returns
self
specificationId()#
public function specificationId(): stringSpecification identifier (BT-24) of the plain EN 16931 invoice in this version, e.g. "urn:cen.eu:en16931:2017".
- Returns
string