CustomerHistoryReadService
in package
implements
CustomerHistoryReadService
Class CustomerHistoryReadService
Interfaces, Classes and Traits
- CustomerHistoryReadService
- Interface CustomerHistoryReadService
Table of Contents
- $factory : CustomerHistoryFactory
- $repository : CustomerHistoryRepository
- __construct() : mixed
- getCustomerHistory() : CustomerHistory
- Returns all available customer history entries.
- getCustomerHistoryForType() : CustomerHistory
- Returns all available customer history entries for the given type.
Properties
$factory
private
CustomerHistoryFactory
$factory
$repository
private
CustomerHistoryRepository
$repository
Methods
__construct()
public
__construct(CustomerHistoryRepository $repository, CustomerHistoryFactory $factory) : mixed
Parameters
- $repository : CustomerHistoryRepository
- $factory : CustomerHistoryFactory
Return values
mixed —getCustomerHistory()
Returns all available customer history entries.
public
getCustomerHistory(int $customerId) : CustomerHistory
Parameters
- $customerId : int
Tags
Return values
CustomerHistory —getCustomerHistoryForType()
Returns all available customer history entries for the given type.
public
getCustomerHistoryForType(int $customerId, string $type) : CustomerHistory
Parameters
- $customerId : int
- $type : string