Class CustomerRepository
This class contains basic methods for finding, creating and deleting customer data
| category |
System |
|---|---|
| package |
Customer |
| implements |
CustomerRepositoryInterface |
__construct(\CustomerWriterInterface $customerWriter, \CustomerReaderInterface $customerReader, \CustomerDeleterInterface $customerDeleter, \CustomerAddressRepositoryInterface $customerAddressRepository, \AbstractCustomerFactory $customerFactory, \AddonValueServiceInterface $addonValueService)
deleteCustomerById(\IdType $customerId)
deleteGuestByEmail(\CustomerEmailInterface $email)
filterCustomers(array $conditions = array(), integer $limit = null, integer $offset = null) : array
Example: $repository->filterCustomers('customers_id' => 1);
arrayAssociative array containing the desired field and value.
integerResult limit
integerResult offset
arrayReturns an array that contains customer objects.
getCustomerById(\IdType $customerId) : \CustomerInterface
| Throws |
|
|---|
\CustomerInterface
getFilterCustomersCount(array $conditions = array()) : integer
Example: $repository->filterCustomers('customers_id' => 1);
arrayAssociative array containing the desired field and value.
integer
getGuestByEmail(\CustomerEmailInterface $email) : \Customer|null
getRegistreeByEmail(\CustomerEmailInterface $email) : \Customer|null
searchCustomers(\CustomerSearchCondition $condition, \Pager $pager) : array
arrayReturns an array that contains customer objects.
store(\CustomerInterface $customer)
customerAddressRepository : \CustomerAddressRepositoryInterface
addonValueService : \AddonValueServiceInterface