Skip to content

API reference / Quittio \ Core \ Countries

ResolvedCountries

final readonly class in quittio/core

Quittio\Core\Countries\ResolvedCountries · Source

Leading pack (seller side) and, for cross-border invoices, the buyer's pack.

Properties#

PropertyTypeDescription
$buyer readonly?CountryPack
$leading readonlyCountryPack

Methods#

MethodDescription
->__construct()
->all()
->isCrossBorder()Whether a buyer pack for another country than the leading pack is set.
->isGeneric()Whether the leading pack is the generic pack (CountryGeneric), i.e. no pack is installed for the seller's country.

__construct()#

public function __construct(CountryPack $leading, ?CountryPack $buyer = null)
ParameterTypeDescription
$leadingCountryPack
$buyer?CountryPack = null

all()#

public function all(): list<CountryPack>
Returns
list<CountryPack>

isCrossBorder()#

public function isCrossBorder(): bool

Whether a buyer pack for another country than the leading pack is set.

Returns
bool

isGeneric()#

public function isGeneric(): bool

Whether the leading pack is the generic pack (CountryGeneric), i.e. no pack is installed for the seller's country.

Returns
bool

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.