ViewContext
in package
Read onlyYes
FinalYes
Everything the view model factory needs besides the invoice data.
Table of Contents
Properties
- $country : CountryPack|null
- $defaults : Presentation|null
- $formatter : Formatter
- $locale : string|null
- null = the invoice's locale (meta), then English
- $logo : ResolvedLogo|null
- The logo of the presentation, resolved by the render run; null = the factory resolves it
- $options : array<string|int, mixed>
- $paymentQr : PaymentQrGenerator|null
- $profile : Profile|null
- $translator : Translator|null
Methods
- __construct() : mixed
- translator() : Translator
Properties
$country
public
CountryPack|null
$country
= null
$defaults
public
Presentation|null
$defaults
= null
$formatter
public
Formatter
$formatter
= new IntlFormatter()
$locale
null = the invoice's locale (meta), then English
public
string|null
$locale
= null
$logo
The logo of the presentation, resolved by the render run; null = the factory resolves it
public
ResolvedLogo|null
$logo
= null
$options
public
array<string|int, mixed>
$options
= []
$paymentQr
public
PaymentQrGenerator|null
$paymentQr
= null
$profile
public
Profile|null
$profile
= null
$translator
public
Translator|null
$translator
= null
Methods
__construct()
public
__construct([string|null $locale = null ][, CountryPack|null $country = null ][, Profile|null $profile = null ][, Formatter $formatter = new IntlFormatter() ][, Translator|null $translator = null ][, PaymentQrGenerator|null $paymentQr = null ][, Presentation|null $defaults = null ][, array<string, mixed> $options = [] ][, ResolvedLogo|null $logo = null ]) : mixed
Parameters
- $locale : string|null = null
- $country : CountryPack|null = null
- $profile : Profile|null = null
- $formatter : Formatter = new IntlFormatter()
- $translator : Translator|null = null
- $paymentQr : PaymentQrGenerator|null = null
- $defaults : Presentation|null = null
- $options : array<string, mixed> = []
-
e.g. girocode_amount (due|discounted), watermark
- $logo : ResolvedLogo|null = null
translator()
public
translator() : Translator