CustomerCountryRepositoryInterface
in
Interface CustomerCountryRepositoryInterface
Tags
Table of Contents
- findById() : CustomerCountry|null
- Method to find a country if exists else return null
- findByIso2() : CustomerCountry|null
- Find country by iso2 code.
- findByName() : CustomerCountry
- Find country by name.
- getAll() : CustomerCountryCollection
- Method to get all customer countries
- getById() : CustomerCountryInterface
- Method to get a customer country with a given country ID
- getByIso2() : CustomerCountry
- Get country by iso2 code.
- getByName() : CustomerCountry
- Get country by name.
Methods
findById()
Method to find a country if exists else return null
public
findById(IdType $countryId) : CustomerCountry|null
Parameters
- $countryId : IdType
Return values
CustomerCountry|null —findByIso2()
Find country by iso2 code.
public
findByIso2(CustomerCountryIso2Interface $countryIso2) : CustomerCountry|null
Parameters
- $countryIso2 : CustomerCountryIso2Interface
Return values
CustomerCountry|null —findByName()
Find country by name.
public
findByName(CustomerCountryNameInterface $countryName) : CustomerCountry
Parameters
- $countryName : CustomerCountryNameInterface
Return values
CustomerCountry —getAll()
Method to get all customer countries
public
getAll() : CustomerCountryCollection
Return values
CustomerCountryCollection —getById()
Method to get a customer country with a given country ID
public
getById(IdType $countryId) : CustomerCountryInterface
Parameters
- $countryId : IdType
Return values
CustomerCountryInterface —getByIso2()
Get country by iso2 code.
public
getByIso2(CustomerCountryIso2Interface $countryIso2) : CustomerCountry
Parameters
- $countryIso2 : CustomerCountryIso2Interface
Tags
Return values
CustomerCountry —getByName()
Get country by name.
public
getByName(CustomerCountryNameInterface $countryName) : CustomerCountry
Parameters
- $countryName : CustomerCountryNameInterface