phpDocumentor

CustomerAddressRepository
in package
implements CustomerAddressRepositoryInterface

Class CustomerAddressRepository

This class contains basic methods for finding, creating and deleting customer addresses

Tags
category

System

subpackage

Address

implements

CustomerAddressRepositoryInterface

Interfaces, Classes and Traits

CustomerAddressRepositoryInterface
Interface CustomerAddressRepositoryInterface

Table of Contents

$customerAddressDeleter  : CustomerAddressDeleterInterface
$customerAddressReader  : CustomerAddressReaderInterface
$customerAddressWriter  : CustomerAddressWriterInterface
$customerFactory  : AbstractCustomerFactory
__construct()  : mixed
Constructor of the class CustomerAddressRepository
deleteCustomerAddress()  : mixed
Method to delete a customer address
deleteCustomerAddressesByCustomer()  : mixed
Deletes the customer address
filterAddresses()  : array<string|int, mixed>
Filter existing address records by provided string.
findById()  : CustomerAddress
Method to find a customer address with a given ID it it exists else it will return null
getAllAddresses()  : array<string|int, mixed>
Get all registered address records.
getById()  : CustomerAddress
Method to get a customer address with a given ID
getCustomerAddresses()  : array<string|int, mixed>
Gets all customer addresses
getNewAddress()  : CustomerAddress
store()  : CustomerAddressInterface
Stores the customer address

Properties

Methods

__construct()

Constructor of the class CustomerAddressRepository

public __construct(CustomerAddressWriterInterface $customerAddressWriter, CustomerAddressDeleterInterface $customerAddressDeleter, CustomerAddressReaderInterface $customerAddressReader, AbstractCustomerFactory $customerFactory) : mixed
Parameters
$customerAddressWriter : CustomerAddressWriterInterface
$customerAddressDeleter : CustomerAddressDeleterInterface
$customerAddressReader : CustomerAddressReaderInterface
$customerFactory : AbstractCustomerFactory
Return values
mixed

filterAddresses()

Filter existing address records by provided string.

public filterAddresses(string $p_keyword[, Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : array<string|int, mixed>
Parameters
$p_keyword : string
$pager : Pager|null = null

(Optional) Pager object with pagination information

$sorters : array<string|int, mixed> = []

(Optional) array of Sorter objects with data sorting information

Return values
array<string|int, mixed>

Returns an array of CustomerAddress objects.

getAllAddresses()

Get all registered address records.

public getAllAddresses([Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : array<string|int, mixed>
Parameters
$pager : Pager|null = null

(Optional) Pager object with pagination information

$sorters : array<string|int, mixed> = []

(Optional) array of Sorter objects with data sorting information

Return values
array<string|int, mixed>

Returns an array of CustomerAddress objects.

Search results