CountryReader
in package
Class CountryReader
Table of Contents
- $connection : Connection
- __construct() : mixed
- getActiveCountries() : array<string|int, mixed>
- Returns all countries customers that are active.
- getCountries() : array<string|int, mixed>
- Returns all available countries.
- getCountryById() : array<string|int, mixed>
- Returns a specific country based on the given ID.
- addZonesToCountry() : void
- createCountryQuery() : QueryBuilder
- getCountryZones() : array<string|int, mixed>
Properties
$connection
private
Connection
$connection
Methods
__construct()
public
__construct(Connection $connection) : mixed
Parameters
- $connection : Connection
Return values
mixed —getActiveCountries()
Returns all countries customers that are active.
public
getActiveCountries(int $languageId) : array<string|int, mixed>
Parameters
- $languageId : int
Return values
array<string|int, mixed> —getCountries()
Returns all available countries.
public
getCountries(int $languageId) : array<string|int, mixed>
Parameters
- $languageId : int
Return values
array<string|int, mixed> —getCountryById()
Returns a specific country based on the given ID.
public
getCountryById(CountryId $id, int $languageId) : array<string|int, mixed>
Parameters
- $id : CountryId
- $languageId : int
Tags
Return values
array<string|int, mixed> —addZonesToCountry()
private
addZonesToCountry(array<string|int, mixed> $country) : void
Parameters
- $country : array<string|int, mixed>
Return values
void —createCountryQuery()
private
createCountryQuery(int $languageId) : QueryBuilder
Parameters
- $languageId : int
Return values
QueryBuilder —getCountryZones()
private
getCountryZones(int $countryId) : array<string|int, mixed>
Parameters
- $countryId : int