CustomerCountryRepository

Implements \CustomerCountryRepositoryInterface

Class CustomerCountryRepository

This class provides basic methods for finding customer country data

category

System

package

Customer

subpackage

Country

implements

CustomerCountryRepositoryInterface

Methods

Constructor of the class CustomerCountryRepository

__construct(\CustomerCountryReader $customerCountryReader) 

Arguments

$customerCountryReader

\CustomerCountryReader

This method will get a country if it exists else it will return null.

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

Arguments

$countryId

\IdType

Response

\CustomerCountry|null

Find country by name.

findByName(\CustomerCountryNameInterface $countryName) : \CustomerCountryInterface

Method to get a customer country with a given country ID

getById(\IdType $countryId) : \CustomerCountry
throws

if country not found

Arguments

$countryId

\IdType

Response

\CustomerCountry

Get country by name.

getByName(\CustomerCountryNameInterface $countryName) : \CustomerCountry
throws

If the country could not be found.

Arguments

Response

\CustomerCountry

Properties

customerCountryReader

customerCountryReader : \CustomerCountryReaderInterface