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

  • CustomerCountryZone
  • CustomerCountryZoneReader
  • CustomerCountryZoneRepository

Class CustomerCountryZoneRepository

Class CustomerCountryZoneRepository

This class provides basic methods for finding customer country zone data

CustomerCountryZoneRepository implements CustomerCountryZoneRepositoryInterface
Package: Customer\CountryZone
Category: System
Implements: CustomerCountryZoneRepositoryInterface
Located at CoreServices/Country/CustomerCountryZoneRepository.inc.php

Methods summary

public
# __construct( CustomerCountryZoneReaderInterface $customerCountryZoneReader, AbstractCustomerFactory $customerFactory )

Constructor of the class CustomerCountryZoneRepository

Constructor of the class CustomerCountryZoneRepository

Parameters

$customerCountryZoneReader
$customerFactory
public CustomerCountryZoneInterface
# getById( IdType $countryZoneId )

Parameters

$countryZoneId

Returns

CustomerCountryZoneInterface

Throws

Exception
if country zone not found

Implementation of

CustomerCountryZoneRepositoryInterface::getById()
public CustomerCountryZoneInterface
# getByNameAndCountry( CustomerCountryZoneNameInterface $countryZoneName, CustomerCountryInterface $country )

Parameters

$countryZoneName
$country

Returns

CustomerCountryZoneInterface

Throws

Exception
if country zone not found

Implementation of

CustomerCountryZoneRepositoryInterface::getByNameAndCountry()
public CustomerCountryZone
# getUnknownCountryZoneByName( CustomerCountryZoneNameInterface $countryZoneName )

This method will return a new CustomerCountryZone object representing an unknown country zone. ID is 0 and ISO code is empty.

This method will return a new CustomerCountryZone object representing an unknown country zone. ID is 0 and ISO code is empty.

Parameters

$countryZoneName

Returns

CustomerCountryZone

Implementation of

CustomerCountryZoneRepositoryInterface::getUnknownCountryZoneByName()
public CustomerCountryZone|null
# findByNameAndCountry( CustomerCountryZoneNameInterface $countryZoneName, CustomerCountryInterface $country )

This method will get the country zone by its name and country if it exists, if not it will return null.

This method will get the country zone by its name and country if it exists, if not it will return null.

Parameters

$countryZoneName
$country

Returns

CustomerCountryZone|null

Implementation of

CustomerCountryZoneRepositoryInterface::findByNameAndCountry()
public CustomerCountryZone|null
# findById( IdType $countryZoneId )

This method will get the country zone by its ID if it exists, if not it will return null.

This method will get the country zone by its ID if it exists, if not it will return null.

Parameters

$countryZoneId

Returns

CustomerCountryZone|null

Implementation of

CustomerCountryZoneRepositoryInterface::findById()
public array
# findCountryZonesByCountryId( IdType $countryId )

This method will return an array of country zones found by the country ID.

This method will return an array of country zones found by the country ID.

Parameters

$countryId

Returns

array

Implementation of

CustomerCountryZoneRepositoryInterface::findCountryZonesByCountryId()

Properties summary

protected CustomerCountryZoneReaderInterface $customerCountryZoneReader
#
protected AbstractCustomerFactory $customerFactory
#
API documentation generated by ApiGen