CountryRepository
in package
implements
CountryRepository
Class CountryRepository
Interfaces, Classes and Traits
- CountryRepository
- Interface CountryRepository
Table of Contents
- $mapper : CountryMapper
- $reader : CountryReader
- __construct() : mixed
- getActiveCountries() : Countries
- Returns all countries customers that are active.
- getCountries() : Countries
- Returns all available countries.
- getCountryById() : Country
- Returns a specific country based on the given ID.
Properties
$mapper
private
CountryMapper
$mapper
$reader
private
CountryReader
$reader
Methods
__construct()
public
__construct(CountryReader $reader, CountryMapper $mapper) : mixed
Parameters
- $reader : CountryReader
- $mapper : CountryMapper
Return values
mixed —getActiveCountries()
Returns all countries customers that are active.
public
getActiveCountries(int $languageId) : Countries
Parameters
- $languageId : int
Tags
Return values
Countries —getCountries()
Returns all available countries.
public
getCountries(int $languageId) : Countries
Parameters
- $languageId : int
Tags
Return values
Countries —getCountryById()
Returns a specific country based on the given ID.
public
getCountryById(CountryId $id, int $languageId) : Country
Parameters
- $id : CountryId
- $languageId : int