Zum Inhalt springen

API reference / Quittio \ Core \ View

ViewContext

final readonly class in quittio/core

Quittio\Core\View\ViewContext · Source

Everything the view model factory needs besides the invoice data.

Properties#

PropertyTypeDescription
$country readonly?CountryPack
$defaults readonly?Presentation
$formatter readonlyFormatter
$locale readonly?string
$options readonlyarray<string, mixed>e.g. girocode_amount (due|discounted), watermark
$paymentQr readonly?PaymentQrGenerator
$profile readonly?Profile
$translator readonly?Translator

Methods#

MethodDescription
->__construct()
->translator()

__construct()#

public function __construct(
    ?string $locale = null,
    ?CountryPack $country = null,
    ?Profile $profile = null,
    Formatter $formatter = new \Quittio\Core\View\IntlFormatter(),
    ?Translator $translator = null,
    ?PaymentQrGenerator $paymentQr = null,
    ?Presentation $defaults = null,
    array<string, mixed> $options = [],
    ?ResolvedLogo $logo = null,
)
ParameterTypeDescription
$locale?string = null
$country?CountryPack = null
$profile?Profile = null
$formatterFormatter = new \Quittio\Core\View\IntlFormatter()
$translator?Translator = null
$paymentQr?PaymentQrGenerator = null
$defaults?Presentation = null
$optionsarray<string, mixed> = []e.g. girocode_amount (due|discounted), watermark
$logo?ResolvedLogo = null

translator()#

public function translator(): Translator
Returns
Translator

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.