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(), integer $limit = null, integer $offset = null) : array
Example: $service->filterCustomers('customers_id' => 1);
arrayAssociative array containing the desired field and value.
integerMySQL limit applied to the records.
integerMySQL offset applied to the records.
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 $pager) : array
arrayReturns an array that contains customer objects.
customerRepository : \CustomerRepositoryInterface