CountryDefaults
in package
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.
Table of Contents
Properties
- $currency : string
- $letterLayout : string
- $locale : string
- $paper : string
- $paymentQr : string
- $profile : string
- $requiredLocales : array<string|int, mixed>
- $smallBusinessVatPreset : string|null
- $timezone : string
- $vatPreset : string|null
Methods
- __construct() : mixed
Properties
$currency
public
string
$currency
= 'EUR'
$letterLayout
public
string
$letterLayout
= 'free'
$locale
public
string
$locale
= 'en'
$paper
public
string
$paper
= 'A4'
$paymentQr
public
string
$paymentQr
= 'girocode'
$profile
public
string
$profile
= 'en16931'
$requiredLocales
public
array<string|int, mixed>
$requiredLocales
= []
$smallBusinessVatPreset
public
string|null
$smallBusinessVatPreset
= null
$timezone
public
string
$timezone
= 'UTC'
$vatPreset
public
string|null
$vatPreset
= null
Methods
__construct()
public
__construct([string $currency = 'EUR' ][, string $timezone = 'UTC' ][, string $locale = 'en' ][, string $paper = 'A4' ][, string $letterLayout = 'free' ][, string $profile = 'en16931' ][, array<int, string> $requiredLocales = [] ][, string $paymentQr = 'girocode' ][, string|null $vatPreset = null ][, string|null $smallBusinessVatPreset = null ]) : mixed
Parameters
- $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 : array<int, 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)