CustomerHistoryRepository
in package
implements
CustomerHistoryRepository
Class CustomerHistoryRepository
Interfaces, Classes and Traits
- CustomerHistoryRepository
- Interface CustomerHistoryRepository
Table of Contents
- $mapper : CustomerHistoryMapper
- $readers : array<string|int, mixed>
- __construct() : mixed
- getCustomerHistory() : CustomerHistory
- Returns all available customer history entries.
- getCustomerHistoryForType() : CustomerHistory
- Returns all available customer history entries for the given type.
- registerCustomerHistoryReader() : void
- Returns all available customer history entries fo
Properties
$mapper
private
CustomerHistoryMapper
$mapper
$readers
private
array<string|int, mixed>
$readers
Methods
__construct()
public
__construct(CustomerHistoryMapper $mapper, CustomerHistoryReader ...$readers) : mixed
Parameters
- $mapper : CustomerHistoryMapper
- $readers : CustomerHistoryReader
Return values
mixed —getCustomerHistory()
Returns all available customer history entries.
public
getCustomerHistory(CustomerId $customerId) : CustomerHistory
Parameters
- $customerId : CustomerId
Tags
Return values
CustomerHistory —getCustomerHistoryForType()
Returns all available customer history entries for the given type.
public
getCustomerHistoryForType(CustomerId $customerId, string $type) : CustomerHistory
Parameters
- $customerId : CustomerId
- $type : string
Tags
Return values
CustomerHistory —registerCustomerHistoryReader()
Returns all available customer history entries fo
public
registerCustomerHistoryReader(CustomerHistoryReader $reader) : void
Parameters
- $reader : CustomerHistoryReader