Class CustomerCountryReader

Class CustomerCountryReader

This class is used for reading customer country data from the database

CustomerCountryReader implements CustomerCountryReaderInterface
Package: Customer\Country
Category: System
Implements: CustomerCountryReaderInterface
Located at Services/Core/Country/CustomerCountryReader.inc.php

Methods summary

public __construct( AbstractCustomerFactory $customerFactory, CI_DB_query_builder $dbQueryBuilder )

Constructor of the class CustomerCountryReader

public findById( IdType $countryId ) : CustomerCountry|null
public findByName( CustomerCountryNameInterface $countryName ) : CustomerCountry|null
public findByIso2( CustomerCountryIso2Interface $countryIso2 ) : CustomerCountry|null
public isStateMandatory( IdType $countryId ) : boolean

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

protected _getCountryByArray( $countryDataArray ) : CustomerCountry

Properties summary

protected $db : CI_DB_query_builder