Documentation

CountryService extends Injectable
in package

Table of Contents

Properties

$countries  : array<string|int, Country>|null
$countryRepository  : CountryRepository
$oldCountryRepository  : CountryRepository

Methods

__construct()  : mixed
countryIsEuMember()  : bool
getAllCountries()  : CountryEntity]
getAllVatcomCountries()  : array<string|int, mixed>|null
getCountries()  : mixed
getCountriesByCountryIdList()  : null|array<string|int, mixed>
getCountriesByCustomList()  : null|array<string|int, mixed>
custom list in config file
getCountriesByEuMember()  : CountryEntity]|null
getCountry()  : CountryEntity|null
getCountryByCountryId()  : CountryEntity|null
getCountryByIdDoctrine()  : Country|null
getCountryByIsoCode2()  : Country|null
getCountryIdByIsoCode2()  : int|null
getCountryIsoCode2ById()  : string|null
getCountryVatTypes()  : array<string|int, mixed>

Properties

Methods

countryIsEuMember()

public countryIsEuMember(int $countryId) : bool
Parameters
$countryId : int
Return values
bool

getAllCountries()

public getAllCountries() : CountryEntity]
Return values
CountryEntity]

getAllVatcomCountries()

public getAllVatcomCountries() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getCountriesByCountryIdList()

public getCountriesByCountryIdList(array<string|int, mixed> $countryIds) : null|array<string|int, mixed>
Parameters
$countryIds : array<string|int, mixed>
Return values
null|array<string|int, mixed>

getCountriesByCustomList()

custom list in config file

public getCountriesByCustomList() : null|array<string|int, mixed>
Return values
null|array<string|int, mixed>

getCountriesByEuMember()

public getCountriesByEuMember() : CountryEntity]|null
Return values
CountryEntity]|null

getCountryByIdDoctrine()

public getCountryByIdDoctrine(int $id) : Country|null
Parameters
$id : int
Tags
throws
Exception
Return values
Country|null

getCountryByIsoCode2()

public getCountryByIsoCode2(string $isoCode2) : Country|null
Parameters
$isoCode2 : string
Return values
Country|null

getCountryIdByIsoCode2()

public getCountryIdByIsoCode2(string $isoCode2) : int|null
Parameters
$isoCode2 : string
Return values
int|null

getCountryIsoCode2ById()

public getCountryIsoCode2ById(int $id) : string|null
Parameters
$id : int
Return values
string|null

getCountryVatTypes()

public getCountryVatTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results