Quittio 0.3 API

CountryRegistry
in package

FinalYes

Installed country packs.

Table of Contents

Methods

__construct()  : mixed
all()  : array<string, CountryPack>
get()  : CountryPack|null
getOrGeneric()  : CountryPack
Returns the installed pack or a generic pack for the country.
has()  : bool
register()  : self
taxPreset()  : TaxPreset|null
The tax preset with this key from the presets of the installed packs, e.g. "de.standard".

Methods

has()

public has(string $code) : bool
Parameters
$code : string
Return values
bool

taxPreset()

The tax preset with this key from the presets of the installed packs, e.g. "de.standard".

public taxPreset(string $key) : TaxPreset|null
Parameters
$key : string
Return values
TaxPreset|null
On this page

Search results