Class CustomerReadService
This class provides methods for reading customer data.
| category |
System |
|---|---|
| package |
Customer |
| implements |
CustomerReadServiceInterface |
__construct(\CustomerRepositoryInterface $customerRepository)
addressIsDefaultCustomerAddress(\CustomerAddressInterface $customerAddress) : boolean
booleanIs 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]);
arrayAssociative array containing the desired field and value.
array(Optional) array of Sorter objects with data sorting information
arrayReturns 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]);
arrayAssociative array containing the desired field and value.
integer
registreeEmailExists(\CustomerEmailInterface $email) : boolean
booleanDoes 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
arrayReturns an array that contains customer objects.
customerRepository : \CustomerRepositoryInterface