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(), \Pager|null $pager = null, array $sorters = array()) : array
Example: $repository->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.
getCustomerById(\IdType $customerId) : \CustomerInterface
Throws |
|
---|
\CustomerInterface
getFilterCustomersCount(array $conditions = array()) : integer
Example: $repository->filterCustomers('customers_id' => 1);
array
Associative array containing the desired field and value.
integer
getGuestByEmail(\CustomerEmailInterface $email) : \Customer|null
getRegistreeByEmail(\CustomerEmailInterface $email) : \Customer|null
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.
store(\CustomerInterface $customer)
customerAddressRepository : \CustomerAddressRepositoryInterface
addonValueService : \AddonValueServiceInterface