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#
| Property | Type | Description |
|---|---|---|
$buyer readonly | ?CountryPack | |
$leading readonly | CountryPack |
Methods#
| Method | Description |
|---|---|
->__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)| Parameter | Type | Description |
|---|---|---|
$leading | CountryPack | |
$buyer | ?CountryPack = null |
all()#
public function all(): list<CountryPack>- Returns
list<CountryPack>
isCrossBorder()#
public function isCrossBorder(): boolWhether a buyer pack for another country than the leading pack is set.
- Returns
bool
isGeneric()#
public function isGeneric(): boolWhether the leading pack is the generic pack (CountryGeneric), i.e. no pack is installed for the seller's country.
- Returns
bool