Quittio 0.3 API

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

$locale

null = the invoice's locale (meta), then English

public string|null $locale = null

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 = []

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
On this page

Search results