Skip to content

API reference / Quittio \ Core \ Formats

FormatRule

interface in quittio/core

Quittio\Core\Formats\FormatRule · Source

A rule of a country pack that decides the output format of an invoice.

Methods#

MethodDescription
->resolve()Returns a format for the invoice, or null if the rule does not apply.

resolve()#

public function resolve(InvoiceData $invoice): ?FormatChoice

Returns a format for the invoice, or null if the rule does not apply.

ParameterTypeDescription
$invoiceInvoiceData
Returns
?FormatChoice

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