Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • CountryService
  • CustomerCountry
  • CustomerCountryReader
  • CustomerCountryRepository

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 CoreServices/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|null
# 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

CustomerCountry|null

Implementation of

CustomerCountryRepositoryInterface::findById()
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()

Properties summary

protected CustomerCountryReaderInterface $customerCountryReader
#
API documentation generated by ApiGen