FormatRegistry
in package
FinalYes
Known output formats. Country and network packages can register national formats.
Table of Contents
Constants
- CII : string = 'cii'
- FACTUR_X : string = 'factur-x'
- HTML : string = 'html'
- JSON : string = 'json'
- PDF : string = 'pdf'
- PEPPOL : string = 'peppol'
- UBL : string = 'ubl'
- XRECHNUNG_CII : string = 'xrechnung-cii'
- XRECHNUNG_UBL : string = 'xrechnung-ubl'
- ZUGFERD : string = 'zugferd'
Methods
- alias() : self
- all() : array<string, OutputFormat>
- get() : OutputFormat
- has() : bool
- register() : self
- withDefaults() : self
Constants
CII
public
string
CII
= 'cii'
FACTUR_X
public
string
FACTUR_X
= 'factur-x'
HTML
public
string
HTML
= 'html'
JSON
public
string
JSON
= 'json'
public
string
PDF
= 'pdf'
PEPPOL
public
string
PEPPOL
= 'peppol'
UBL
public
string
UBL
= 'ubl'
XRECHNUNG_CII
the German pack registers XRechnung, use Quittio\Country\DE\Formats\XRechnungFormats::CII
public
string
XRECHNUNG_CII
= 'xrechnung-cii'
XRECHNUNG_UBL
the German pack registers XRechnung, use Quittio\Country\DE\Formats\XRechnungFormats::UBL
public
string
XRECHNUNG_UBL
= 'xrechnung-ubl'
ZUGFERD
public
string
ZUGFERD
= 'zugferd'
Methods
alias()
public
alias(string $alias, string $key) : self
Parameters
- $alias : string
- $key : string
Return values
selfall()
public
all() : array<string, OutputFormat>
Return values
array<string, OutputFormat>get()
public
get(string $key) : OutputFormat
Parameters
- $key : string
Return values
OutputFormathas()
public
has(string $key) : bool
Parameters
- $key : string
Return values
boolregister()
public
register(OutputFormat $format) : self
Parameters
- $format : OutputFormat
Return values
selfwithDefaults()
public
static withDefaults() : self