LeitwegId
in package
FinalYes
Leitweg-ID of public buyers in Germany (BT-10 for XRechnung): coarse address (2–12 digits), optional fine address (up to 30 characters) and check digits according to ISO 7064 Mod 97-10.
Table of Contents
Methods
- checkDigits() : string
- The two check digits (ISO 7064 MOD 97-10) of a Leitweg-ID, computed over the coarse and the fine address concatenated without the dash, e.g. checkDigits('04011000'.'1234512345').
- isValid() : bool
- Whether the value is a Leitweg-ID with correct check digits.
- looksLike() : bool
- Whether the value has the shape of a Leitweg-ID (coarse address, optional fine address, two check digits, separated by dashes), whatever its check digits.
Methods
checkDigits()
The two check digits (ISO 7064 MOD 97-10) of a Leitweg-ID, computed over the coarse and the fine address concatenated without the dash, e.g. checkDigits('04011000'.'1234512345').
public
static checkDigits(string $address) : string
Parameters
- $address : string
Return values
stringisValid()
Whether the value is a Leitweg-ID with correct check digits.
public
static isValid(string|null $value) : bool
Parameters
- $value : string|null
Return values
boollooksLike()
Whether the value has the shape of a Leitweg-ID (coarse address, optional fine address, two check digits, separated by dashes), whatever its check digits.
public
static looksLike(string|null $value) : bool
Parameters
- $value : string|null