phpDocumentor

CustomerFactory extends AbstractCustomerFactory
in package

Class CustomerFactory

Factory class for all needed customer data.

Tags
category

System

extends

AbstractCustomerFactory

Table of Contents

createCustomer()  : Customer
Creates a new customer object.
createCustomerAddress()  : CustomerAddress
Creates a new customer address object.
createCustomerCountry()  : CustomerCountry
Creates a new customer country object with the given parameters.
createCustomerCountryZone()  : CustomerCountryZone
Creates a new customer country zone object with the given parameters.

Methods

createCustomerCountry()

Creates a new customer country object with the given parameters.

public createCustomerCountry(IdType $id, CustomerCountryNameInterface $name, CustomerCountryIso2Interface $iso2, CustomerCountryIso3Interface $iso3, IdType $addressFormatId, bool $status) : CustomerCountry
Parameters
$id : IdType

Country ID.

$name : CustomerCountryNameInterface

Country name.

$iso2 : CustomerCountryIso2Interface

Country ISO-2 code.

$iso3 : CustomerCountryIso3Interface

Country ISO-3 code.

$addressFormatId : IdType

Country address format ID.

$status : bool

Country status.

Return values
CustomerCountry

Created customer country.

createCustomerCountryZone()

Creates a new customer country zone object with the given parameters.

public createCustomerCountryZone(IdType $id, CustomerCountryZoneNameInterface $name, CustomerCountryZoneIsoCodeInterface $isoCode) : CustomerCountryZone
Parameters
$id : IdType

Country zone ID.

$name : CustomerCountryZoneNameInterface

Country zone name.

$isoCode : CustomerCountryZoneIsoCodeInterface

Country ISO code.

Return values
CustomerCountryZone

Created customer country zone.

Search results