CountryReadService
in package
implements
CountryReadService
Class CountryReadService
Interfaces, Classes and Traits
- CountryReadService
- Interface CountryReadService
Table of Contents
- $factory : CountryFactory
- $repository : CountryRepository
- __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
$factory
private
CountryFactory
$factory
$repository
private
CountryRepository
$repository
Methods
__construct()
public
__construct(CountryRepository $repository, CountryFactory $factory) : mixed
Parameters
- $repository : CountryRepository
- $factory : CountryFactory
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(int $id, int $languageId) : Country
Parameters
- $id : int
- $languageId : int