Class CustomerCountryZoneReader
Class CustomerCountryZoneReader
This class is used for reading customer country zone data from the database
- CustomerCountryZoneReader implements CustomerCountryZoneReaderInterface
Package: Customer\CountryZone
Category: System
Implements: CustomerCountryZoneReaderInterface
Located at Services/Core/Country/CustomerCountryZoneReader.inc.php
Category: System
Implements: CustomerCountryZoneReaderInterface
Located at Services/Core/Country/CustomerCountryZoneReader.inc.php
Methods summary
public
__construct( AbstractCustomerFactory $customerFactory, CI_DB_query_builder $dbQueryBuilder )
Constructor of the class CustomerCountryZoneReader
public
findByNameAndCountry( CustomerCountryZoneNameInterface $countryZoneName, CustomerCountryInterface $country )
: CustomerCountryZone|null
public
findCountryZoneByZoneCodeAndCountry( CustomerCountryZoneIsoCodeInterface $zoneCode, CustomerCountryInterface $country )
: CustomerCountryZoneInterface|null
Returns an array with country zone data. An empty array will be returned if no results are found.
public
findCountryZoneByZoneCodeAndCountryId( CustomerCountryZoneIsoCodeInterface $zoneCode, IdType $countryId )
: CustomerCountryZoneInterface|null
Returns an array with country zone data. An empty array will be returned if no results are found.
protected
_createCountryZoneByArray( array $zoneDataArray )
: CustomerCountryZone
Creates a customer country zone object from the given zone data.
protected
_getZoneDataByZoneCodeAndCountryId( string $zoneCode, integer $countryId )
: array
Fetches data for a zone by the given zone code and country id.