CustomerCountryRepositoryInterface

Extends

Interface CustomerCountryRepositoryInterface

category

System

package

Customer

subpackage

Interfaces

Methods

Method to find a country if exists else return null

findById(\IdType $countryId) : \CustomerCountry|null

Arguments

$countryId

\IdType

Response

\CustomerCountry|null

Find country by iso2 code.

findByIso2(\CustomerCountryIso2Interface $countryIso2) : \CustomerCountry|null

Arguments

Response

\CustomerCountry|null

Find country by name.

findByName(\CustomerCountryNameInterface $countryName) : \CustomerCountry

Arguments

Response

\CustomerCountry

Method to get a customer country with a given country ID

getById(\IdType $countryId) : \CustomerCountryInterface

Arguments

$countryId

\IdType

Response

\CustomerCountryInterface

Get country by iso2 code.

getByIso2(\CustomerCountryIso2Interface $countryIso2) : \CustomerCountry
Throws
\Exception

If the country could not be found.

Arguments

Response

\CustomerCountry

Get country by name.

getByName(\CustomerCountryNameInterface $countryName) : \CustomerCountry
Throws
\Exception

If the country could not be found.

Arguments

Response

\CustomerCountry