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 CustomerCountryRepository

Class CustomerCountryRepository

This class provides basic methods for finding customer country data

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

Methods summary

public
# __construct( CustomerCountryReader $customerCountryReader )

Constructor of the class CustomerCountryRepository

Constructor of the class CustomerCountryRepository

Parameters

$customerCountryReader
public CustomerCountry
# getById( IdType $countryId )

Parameters

$countryId

Returns

CustomerCountry

Throws

Exception
if country not found

Implementation of

CustomerCountryRepositoryInterface::getById()
public CustomerCountry
# getByIso2( CustomerCountryIso2Interface $countryIso2 )

Get country by iso2 code.

Get country by iso2 code.

Parameters

$countryIso2

Returns

CustomerCountry

Throws

Exception
If the country could not be found.

Implementation of

CustomerCountryRepositoryInterface::getByIso2()
public CustomerCountryInterface
# findById( IdType $countryId )

This method will get a country if it exists else it will return null.

This method will get a country if it exists else it will return null.

Parameters

$countryId

Returns

CustomerCountryInterface

Implementation of

CustomerCountryRepositoryInterface::findById()
public CustomerCountryInterface|null
# findByIso2( CustomerCountryIso2Interface $countryIso2 )

Find country by iso2 code.

Find country by iso2 code.

Parameters

$countryIso2

Returns

CustomerCountryInterface|null

Implementation of

CustomerCountryRepositoryInterface::findByIso2()
public CustomerCountry
# getByName( CustomerCountryNameInterface $countryName )

Get country by name.

Get country by name.

Parameters

$countryName

Returns

CustomerCountry

Throws

Exception
If the country could not be found.

Implementation of

CustomerCountryRepositoryInterface::getByName()
public CustomerCountryInterface
# findByName( CustomerCountryNameInterface $countryName )

Find country by name.

Find country by name.

Parameters

$countryName

Returns

CustomerCountryInterface

Implementation of

CustomerCountryRepositoryInterface::findByName()

Properties summary

protected CustomerCountryReaderInterface $customerCountryReader
#
API documentation generated by ApiGen