CustomerRepositoryInterface

Extends

Interface CustomerRepositoryInterface

category

System

package

Customer

subpackage

Interfaces

Methods

Deletes a guest account by its email address.

deleteGuestByEmail(\CustomerEmailInterface $email) 

Arguments

$email

\CustomerEmailInterface

Guest customer's E-Mail address.

Filters customer records and returns an array with results.

filterCustomers(array $conditions = array(), \Pager|null $pager = null, array $sorters = array()) : array

Example: $repository->filterCustomers('customers_id' => 1);

Arguments

$conditions

array

Associative array containing the desired field and value.

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

array

Returns an array that contains customer objects.

Filters customer records and returns the total count.

getFilterCustomersCount(array $conditions = array()) : integer

Example: $repository->filterCustomers('customers_id' => 1);

Arguments

$conditions

array

Associative array containing the desired field and value.

Response

integer

Returns a guest account by its email address.

getGuestByEmail(\CustomerEmailInterface $email) : \Customer|null

Arguments

$email

\CustomerEmailInterface

Guest customer's E-Mail address.

Response

\Customer|null

Customer or null if not found.

Creates a new customer.

getNewCustomer() : \Customer

Response

\Customer

Newly created customer.

Finds a registered customer based on the e-mail address.

getRegistreeByEmail(\CustomerEmailInterface $email) : \Customer|null

Arguments

$email

\CustomerEmailInterface

Customer's E-Mail address.

Response

\Customer|null

Customer or null if not found.

Filters customer records by a given CustomerSearchCondition object and returns an array with results.

searchCustomers(\CustomerSearchCondition $condition, \Pager|null $pager = null, array $sorters = array()) : array

Arguments

$condition

\CustomerSearchCondition

Conditions object for search.

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

array

Returns an array that contains customer objects.

Stores customer data in the database.

store(\CustomerInterface $customer) 

Arguments

$customer

\CustomerInterface

Customer.