Zum Inhalt springen

API reference / Quittio \ Core \ Formats

FormatRegistry

final class in quittio/core

Quittio\Core\Formats\FormatRegistry · Source

Known output formats. Country and network packages can register national formats.

Constants#

ConstantValueDescription
CII'cii'
FACTUR_X'factur-x'
HTML'html'
JSON'json'
PDF'pdf'
PEPPOL'peppol'
UBL'ubl'
XRECHNUNG_CII'xrechnung-cii'
XRECHNUNG_UBL'xrechnung-ubl'
ZUGFERD'zugferd'

Methods#

MethodDescription
->alias()
->all()
->get()
->has()
->register()
::withDefaults()

alias()#

public function alias(string $alias, string $key): self
ParameterTypeDescription
$aliasstring
$keystring
Returns
self

all()#

public function all(): array<string, OutputFormat>
Returns
array<string, OutputFormat>

get()#

public function get(string $key): OutputFormat
ParameterTypeDescription
$keystring
Returns
OutputFormat

has()#

public function has(string $key): bool
ParameterTypeDescription
$keystring
Returns
bool

register()#

public function register(OutputFormat $format): self
ParameterTypeDescription
$formatOutputFormat
Returns
self

withDefaults()#

public static function withDefaults(): self

static

Returns
self

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.