phpDocumentor

CustomerCountryRepository
in package
implements CustomerCountryRepositoryInterface

Class CustomerCountryRepository

This class provides basic methods for finding customer country data

Tags
category

System

subpackage

Country

implements

CustomerCountryRepositoryInterface

Interfaces, Classes and Traits

CustomerCountryRepositoryInterface
Interface CustomerCountryRepositoryInterface

Table of Contents

$customerCountryReader  : CustomerCountryReaderInterface
__construct()  : mixed
Constructor of the class CustomerCountryRepository
findById()  : CustomerCountryInterface
This method will get a country if it exists else it will return null.
findByIso2()  : CustomerCountryInterface|null
Find country by iso2 code.
findByName()  : CustomerCountryInterface
Find country by name.
getAll()  : CustomerCountryCollection
Method to get all customer countries
getById()  : CustomerCountry
Method to get a customer country with a given country ID
getByIso2()  : CustomerCountry
Get country by iso2 code.
getByName()  : CustomerCountry
Get country by name.
isStateMandatory()  : bool
This method returns whether the specified country, necessary, needs a state.

Properties

Methods

isStateMandatory()

This method returns whether the specified country, necessary, needs a state.

public isStateMandatory(IdType $countryId) : bool
Parameters
$countryId : IdType
Return values
bool

Search results