Skip to content

API reference / Quittio \ Core \ Formats

FormatResolver

interface in quittio/core

Quittio\Core\Formats\FormatResolver · Source

Chooses format and profile when none is given.

Methods#

MethodDescription
->resolve()Format and profile for $invoice, chosen from the invoice data and its country packs.

resolve()#

public function resolve(InvoiceData $invoice, ResolvedCountries $countries): FormatChoice

Format and profile for $invoice, chosen from the invoice data and its country packs.

ParameterTypeDescription
$invoiceInvoiceData
$countriesResolvedCountries
Returns
FormatChoice

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.