API reference / Quittio \ Core \ Formats
FormatResolver
interface in quittio/core
Quittio\Core\Formats\FormatResolver · Source
Chooses format and profile when none is given.
Methods#
| Method | Description |
|---|---|
->resolve() | Format and profile for $invoice, chosen from the invoice data and its country packs. |
resolve()#
public function resolve(InvoiceData $invoice, ResolvedCountries $countries): FormatChoiceFormat and profile for $invoice, chosen from the invoice data and its country packs.
| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData | |
$countries | ResolvedCountries |
- Returns
FormatChoice