CustomerCountryZoneReader

Implements \CustomerCountryZoneReaderInterface

Class CustomerCountryZoneReader

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

category

System

package

Customer

subpackage

CountryZone

implements

CustomerCountryZoneReaderInterface

Methods

Constructor of the class CustomerCountryZoneReader

__construct(\AbstractCustomerFactory $customerFactory, \CI_DB_query_builder $dbQueryBuilder) 

Arguments

$customerFactory

\AbstractCustomerFactory

$dbQueryBuilder

\CI_DB_query_builder

_createCountryZoneByArray

_createCountryZoneByArray(array $zoneDataArray) : \CustomerCountryZone

Arguments

$zoneDataArray

array

Response

\CustomerCountryZone

Method to find a country zone with a given ID if it exists else it will return null

findById(\IdType $countryZoneId) : \CustomerCountryZone

Arguments

$countryZoneId

\IdType

Response

\CustomerCountryZone

Method to find a country zone with a given name if it exists else it will return null

findByName(\CustomerCountryZoneNameInterface $countryZoneName) : \CustomerCountryZone

Arguments

Response

\CustomerCountryZone

findByNameAndCountry

findByNameAndCountry(\CustomerCountryZoneNameInterface $countryZoneName, \CustomerCountryInterface $country) : \CustomerCountryZone|null

Arguments

Response

\CustomerCountryZone|null

Method to find a country zone with a given country ID if it exists else it will return an empty array

findCountryZonesByCountryId(\IdType $countryId) : array

Arguments

$countryId

\IdType

Response

array

of CustomerCountryZone objects

Properties

customerFactory

customerFactory : \AbstractCustomerFactory

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder