Class CustomerReadService
This class provides methods for reading customer data.
category |
System |
---|---|
package |
Customer |
implements |
CustomerReadServiceInterface |
__construct(\CustomerRepositoryInterface $customerRepository)
addressIsDefaultCustomerAddress(\CustomerAddressInterface $customerAddress) : boolean
boolean
Is provided address the customer's default address?
filterCustomers(array $conditions = array(), \Pager|null $pager = null, array $sorters = array()) : array
Example: $service->filterCustomers(['customers_id' => 1]);
array
Associative array containing the desired field and value.
array
(Optional) array of Sorter objects with data sorting information
array
Returns an array that contains customer objects.
findCustomerByEmail(\CustomerEmailInterface $emailAddress) : \Customer|null
getCustomerById(\IdType $customerId) : \Customer
getFilterCustomersCount(array $conditions = array()) : integer
Example: $service->filterCustomers(['customers_id' => 1]);
array
Associative array containing the desired field and value.
integer
registreeEmailExists(\CustomerEmailInterface $email) : boolean
boolean
Does the E-Mail address already exist?
searchCustomers(\CustomerSearchCondition $condition, \Pager|null $pager = null, array $sorters = array()) : array
array
(Optional) array of Sorter objects with data sorting information
array
Returns an array that contains customer objects.
customerRepository : \CustomerRepositoryInterface