Class CustomerReadService

Class CustomerReadService

This class provides methods for reading customer data.

CustomerReadService implements CustomerReadServiceInterface
Package: Customer
Category: System
Implements: CustomerReadServiceInterface
Located at Services/Core/Customer/CustomerReadService.inc.php

Methods summary

public __construct( CustomerRepositoryInterface $customerRepository )

Constructor of the class CustomerService.

public getCustomerById( IdType $customerId ) : Customer

Finds a customer by an entered ID.

public findCustomerByEmail( CustomerEmailInterface $emailAddress ) : Customer|null

Finds a customer by its email address. Returns null if no customer is found.

public registreeEmailExists( CustomerEmailInterface $email ) : boolean

Checks if the email address of the registree already exists.

public addressIsDefaultCustomerAddress( CustomerAddressInterface $customerAddress ) : boolean

Checks if address is the default address of the customer.

public filterCustomers( array $conditions = [], integer $limit = null, integer $offset = null ) : array

Filters customer records and returns an array with results.

public getFilterCustomersCount( array $conditions = [] ) : integer

Filters customer records and returns the total count.

Properties summary

protected $customerRepository : CustomerRepositoryInterface

Customer repository.