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
$countries
private
array<string|int, Country>|null
$countries
= null
$countryRepository
private
CountryRepository
$countryRepository
$oldCountryRepository
private
CountryRepository
$oldCountryRepository
Methods
__construct()
public
__construct(CountryRepository $countryRepository, CountryRepository $oldCountryRepository) : mixed
Parameters
- $countryRepository : CountryRepository
- $oldCountryRepository : CountryRepository
countryIsEuMember()
public
countryIsEuMember(int $countryId) : bool
Parameters
- $countryId : int
Return values
boolgetAllCountries()
public
getAllCountries() : CountryEntity]
Return values
CountryEntity]getAllVatcomCountries()
public
getAllVatcomCountries() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetCountries()
public
getCountries() : mixed
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]|nullgetCountry()
public
getCountry(int $countryId) : CountryEntity|null
Parameters
- $countryId : int
Return values
CountryEntity|nullgetCountryByCountryId()
public
getCountryByCountryId(int $id) : CountryEntity|null
Parameters
- $id : int
Return values
CountryEntity|nullgetCountryByIdDoctrine()
public
getCountryByIdDoctrine(int $id) : Country|null
Parameters
- $id : int
Tags
Return values
Country|nullgetCountryByIsoCode2()
public
getCountryByIsoCode2(string $isoCode2) : Country|null
Parameters
- $isoCode2 : string
Return values
Country|nullgetCountryIdByIsoCode2()
public
getCountryIdByIsoCode2(string $isoCode2) : int|null
Parameters
- $isoCode2 : string
Return values
int|nullgetCountryIsoCode2ById()
public
getCountryIsoCode2ById(int $id) : string|null
Parameters
- $id : int
Return values
string|nullgetCountryVatTypes()
public
getCountryVatTypes() : array<string|int, mixed>