API reference / Quittio \ Core \ Countries \ Capabilities
ProvidesFormats
interface in quittio/core
Quittio\Core\Countries\Capabilities\ProvidesFormats · Source
A country pack that brings output formats, e.g. a national e-invoice format, with their aliases and the serializers of their syntaxes. Quittio::registerCountry() registers them. AbstractCountryPack implements it with empty defaults.
Methods#
| Method | Description |
|---|---|
->formatAliases() | Further names of formats: alias => format key, e.g. ['xrechnung' => 'xrechnung-cii']. |
->formats() | Formats of the pack; a format with the key of a registered one replaces it. |
->serializers() | Serializers for the syntaxes of the pack's formats; a serializer replaces the one of its syntax. |
formatAliases()#
public function formatAliases(): array<string, string>Further names of formats: alias => format key, e.g. ['xrechnung' => 'xrechnung-cii'].
- Returns
array<string, string>
formats()#
public function formats(): list<OutputFormat>Formats of the pack; a format with the key of a registered one replaces it.
- Returns
list<OutputFormat>
serializers()#
public function serializers(): list<XmlSerializer>Serializers for the syntaxes of the pack's formats; a serializer replaces the one of its syntax.
- Returns
list<XmlSerializer>