CustomerReadService
in package
implements
CustomerReadService
Class CustomerReadService
Interfaces, Classes and Traits
- CustomerReadService
- Interface CustomerReadService
Table of Contents
- $factory : CustomerFactory
- $repository : CustomerRepository
- __construct() : mixed
- getCustomerById() : Customer
- Returns a specific customer based on the given ID.
- getCustomers() : Customers
- Returns all available customers.
- getGuestAccounts() : Customers
- Returns all available customers that are guest accounts.
- validateEmailAddress() : true
- Checks if an email address is valid in its self or is already taken by another customer
Properties
$factory
private
CustomerFactory
$factory
$repository
private
CustomerRepository
$repository
Methods
__construct()
public
__construct(CustomerFactory $factory, CustomerRepository $repository) : mixed
Parameters
- $factory : CustomerFactory
- $repository : CustomerRepository
Return values
mixed —getCustomerById()
Returns a specific customer based on the given ID.
public
getCustomerById(int $id) : Customer
Parameters
- $id : int
Tags
Return values
Customer —getCustomers()
Returns all available customers.
public
getCustomers() : Customers
Tags
Return values
Customers —getGuestAccounts()
Returns all available customers that are guest accounts.
public
getGuestAccounts() : Customers
Tags
Return values
Customers —validateEmailAddress()
Checks if an email address is valid in its self or is already taken by another customer
public
validateEmailAddress(string $email) : true
Parameters
- $email : string