CustomerHistoryVoucherReader
in package
implements
CustomerHistoryReader
Class CustomerHistoryVoucherReader
Interfaces, Classes and Traits
- CustomerHistoryReader
- Interface CustomerHistoryReader
Table of Contents
- $connection : Connection
- $factory : CustomerHistoryFactory
- __construct() : mixed
- getCustomerHistoryEntries() : CustomerHistoryEntryDtos
- Returns all available customer history entries.
- getType() : string
- Returns type of history entry the reader provides
- mapDbRowsByCoupon() : array<string|int, mixed>
- Maps db entries by the coupon id. Each language dependent description has it's on row in the query result
Properties
$connection
private
Connection
$connection
$factory
private
CustomerHistoryFactory
$factory
Methods
__construct()
public
__construct(Connection $connection, CustomerHistoryFactory $factory) : mixed
Parameters
- $connection : Connection
- $factory : CustomerHistoryFactory
Return values
mixed —getCustomerHistoryEntries()
Returns all available customer history entries.
public
getCustomerHistoryEntries(CustomerId $id) : CustomerHistoryEntryDtos
Parameters
- $id : CustomerId
Tags
Return values
CustomerHistoryEntryDtos —getType()
Returns type of history entry the reader provides
public
getType() : string
Tags
Return values
string —mapDbRowsByCoupon()
Maps db entries by the coupon id. Each language dependent description has it's on row in the query result
protected
mapDbRowsByCoupon(array<string|int, mixed> $entries) : array<string|int, mixed>
Parameters
- $entries : array<string|int, mixed>