Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • CountryService
  • CustomerCountry
  • CustomerCountryReader
  • CustomerCountryRepository
  • UnknownCustomerCountry

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

Constructor of the class CustomerCountryReader

Parameters

$customerFactory
$dbQueryBuilder
public CustomerCountry|null
# findById( IdType $countryId )

Parameters

$countryId

Returns

CustomerCountry|null

Throws

InvalidArgumentException
if $p_countryId is not a valid ID
Exception
if country not found

Implementation of

CustomerCountryReaderInterface::findById()
public CustomerCountry|null
# findByName( CustomerCountryNameInterface $countryName )

Parameters

$countryName

Returns

CustomerCountry|null

Implementation of

CustomerCountryReaderInterface::findByName()
public CustomerCountry|null
# findByIso2( CustomerCountryIso2Interface $countryIso2 )

Parameters

$countryIso2

Returns

CustomerCountry|null

Implementation of

CustomerCountryReaderInterface::findByIso2()
protected CustomerCountry
# _getCountryByArray( $countryDataArray )

Parameters

$countryDataArray

Returns

CustomerCountry

Properties summary

protected AbstractCustomerFactory $customerFactory
#
protected CI_DB_query_builder $db
#
API documentation generated by ApiGen