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#
| Constant | Value | Description |
|---|---|---|
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#
| Method | Description |
|---|---|
->alias() | |
->all() | |
->get() | |
->has() | |
->register() | |
::withDefaults() |
alias()#
public function alias(string $alias, string $key): self| Parameter | Type | Description |
|---|---|---|
$alias | string | |
$key | string |
- Returns
self
all()#
public function all(): array<string, OutputFormat>- Returns
array<string, OutputFormat>
get()#
public function get(string $key): OutputFormat| Parameter | Type | Description |
|---|---|---|
$key | string |
- Returns
OutputFormat
has()#
public function has(string $key): bool| Parameter | Type | Description |
|---|---|---|
$key | string |
- Returns
bool
register()#
public function register(OutputFormat $format): self| Parameter | Type | Description |
|---|---|---|
$format | OutputFormat |
- Returns
self
withDefaults()#
public static function withDefaults(): self- Returns
self