API reference / Quittio \ Country \ AT \ Texts
LegalTexts
final class in quittio/country-at
Quittio\Country\AT\Texts\LegalTexts · Source
Mandatory and informational texts for Austrian invoices.
The notices that a tax preset also states (reverse charge, intra-community supply, export, small business) are the preset's exemption reason texts, so that one notice has one wording.
Not reviewed by a tax adviser yet (see the README of the pack).
Constants#
| Constant | Value | Description |
|---|---|---|
DEFAULT_INTEREST | 'default_interest' | Description of a default interest charge between businesses (DefaultInterest). |
DEFAULT_INTEREST_CONSUMER | 'default_interest_consumer' | Description of a default interest charge of a consumer (DefaultInterest). |
EXPORT | 'export' | |
FALLBACK_LOCALE | 'de' | |
INTRA_COMMUNITY_SUPPLY | 'intra_community_supply' | |
REVERSE_CHARGE | 'reverse_charge' | |
SELF_BILLING | 'self_billing' | Label of a self-billed invoice (section 11 (8) no. 3 UStG). |
SMALL_BUSINESS | 'small_business' |
Methods#
| Method | Description |
|---|---|
::catalog() | The texts in every locale the pack ships, from its language files through the active translator, so that lang/vendor/quittio-at overrides them in Laravel. |
::localeOf() | The catalog locale text() uses for $key and $locale: $locale itself, else its language, else the fallback German. |
::text() | The text of $key in $locale, in its language (e.g. English for "en_GB"), or else in German. |
catalog()#
public static function catalog(): LegalTextCatalogThe texts in every locale the pack ships, from its language files through the active translator, so that lang/vendor/quittio-at overrides them in Laravel.
- Returns
LegalTextCatalog
localeOf()#
public static function localeOf(string $key, string $locale): stringThe catalog locale text() uses for $key and $locale: $locale itself, else its language, else the fallback German.
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$locale | string |
- Returns
string
text()#
public static function text(
string $key,
string $locale = self::FALLBACK_LOCALE,
array<string, string> $replace = [],
): stringThe text of $key in $locale, in its language (e.g. English for "en_GB"), or else in German.
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$locale | string = self::FALLBACK_LOCALE | |
$replace | array<string, string> = [] |
- Returns
string