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#
| Method | Description |
|---|---|
->resolve() | Returns a format for the invoice, or null if the rule does not apply. |
resolve()#
public function resolve(InvoiceData $invoice): ?FormatChoiceReturns a format for the invoice, or null if the rule does not apply.
| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData |
- Returns
?FormatChoice