CustomerCountryReaderInterface
in
Interface CustomerCountryReaderInterface
Tags
Table of Contents
- findById() : CustomerCountry
- Method to find a country with a given ID if it exists else it will return null
- findByIso2() : CustomerCountry|null
- Method to find a country with a given iso2 code if it exists else it will return null
- findByName() : CustomerCountry|null
- Method to find a country with a given name if it exists else it will return null
- getAll() : CustomerCountryCollection
- Method to get all countries
- isStateMandatory() : bool
- This method returns whether the specified country, necessary, needs a state.
Methods
findById()
Method to find a country with a given ID if it exists else it will return null
public
findById(IdType $countryId) : CustomerCountry
Parameters
- $countryId : IdType
Tags
Return values
CustomerCountry —findByIso2()
Method to find a country with a given iso2 code if it exists else it will return null
public
findByIso2( $countryIso2) : CustomerCountry|null
Parameters
Return values
CustomerCountry|null —findByName()
Method to find a country with a given name if it exists else it will return null
public
findByName( $countryName) : CustomerCountry|null
Parameters
Return values
CustomerCountry|null —getAll()
Method to get all countries
public
getAll() : CustomerCountryCollection
Return values
CustomerCountryCollection —isStateMandatory()
This method returns whether the specified country, necessary, needs a state.
public
isStateMandatory(IdType $countryId) : bool
Parameters
- $countryId : IdType