API reference / Quittio \ Core \ Countries
CountryDefaults
final readonly class in quittio/core
Quittio\Core\Countries\CountryDefaults · Source
Defaults of a country.
Applied by the core: $locale (locale of a run that names none), $paper (paper size unless the presentation or the configuration sets one), $letterLayout (letter layout unless the presentation names one), $paymentQr (what the payment QR code type "auto" prints) and $vatPreset and $smallBusinessVatPreset (VAT of lines without one, see CountryDefaultVat). Informational metadata for applications, not applied by the core: $currency, $timezone, $profile and $requiredLocales.
Properties#
| Property | Type | Description |
|---|---|---|
$currency readonly | string | usual currency of the country; an invoice names its own (BT-5) |
$letterLayout readonly | string | |
$locale readonly | string | |
$paper readonly | string | |
$paymentQr readonly | string | payment QR code of the type "auto": girocode (the pack's generator, otherwise the EPC GiroCode), swiss-qr-bill or another type (the pack's generator, otherwise none) or none |
$profile readonly | string | usual profile of the country; the profile of a run comes from the call, the configuration, the format rules of the pack or the format |
$requiredLocales readonly | list<string> | languages an invoice must (also) be issued in; a run renders one locale |
$smallBusinessVatPreset readonly | string|null | key of that preset for invoices of small businesses (Meta::FLAG_SMALL_BUSINESS) |
$timezone readonly | string | time zone of the country, e.g. as default for an application's issuers; invoices use their own (InvoiceBuilder::timezone(), default UTC) |
$vatPreset readonly | string|null | key of the preset of the pack for lines without VAT treatment, usually the standard rate |
Methods#
| Method | Description |
|---|---|
->__construct() |
__construct()#
public function __construct(
string $currency = 'EUR',
string $timezone = 'UTC',
string $locale = 'en',
string $paper = 'A4',
string $letterLayout = 'free',
string $profile = 'en16931',
list<string> $requiredLocales = [],
string $paymentQr = 'girocode',
string|null $vatPreset = null,
string|null $smallBusinessVatPreset = null,
)| Parameter | Type | Description |
|---|---|---|
$currency | string = 'EUR' | usual currency of the country; an invoice names its own (BT-5) |
$timezone | string = 'UTC' | time zone of the country, e.g. as default for an application's issuers; invoices use their own (InvoiceBuilder::timezone(), default UTC) |
$locale | string = 'en' | |
$paper | string = 'A4' | |
$letterLayout | string = 'free' | |
$profile | string = 'en16931' | usual profile of the country; the profile of a run comes from the call, the configuration, the format rules of the pack or the format |
$requiredLocales | list<string> = [] | languages an invoice must (also) be issued in; a run renders one locale |
$paymentQr | string = 'girocode' | payment QR code of the type "auto": girocode (the pack's generator, otherwise the EPC GiroCode), swiss-qr-bill or another type (the pack's generator, otherwise none) or none |
$vatPreset | string|null = null | key of the preset of the pack for lines without VAT treatment, usually the standard rate |
$smallBusinessVatPreset | string|null = null | key of that preset for invoices of small businesses (Meta::FLAG_SMALL_BUSINESS) |