CustomerHistory
in package
implements
IteratorAggregate
Class CustomerHistory
Interfaces, Classes and Traits
- IteratorAggregate
Table of Contents
- $entries : array<string|int, mixed>
- create() : CustomerHistory
- getIterator() : Traversable|array<string|int, CustomerHistoryEntry>
- merge() : CustomerHistory
- toArray() : array<string|int, mixed>
- __construct() : mixed
- sortAscending() : array<string|int, mixed>
Properties
$entries
private
array<string|int, mixed>
$entries
Methods
create()
public
static create(CustomerHistoryEntry ...$entries) : CustomerHistory
Parameters
- $entries : CustomerHistoryEntry
Return values
CustomerHistory —getIterator()
public
getIterator() : Traversable|array<string|int, CustomerHistoryEntry>
Return values
Traversable|array<string|int, CustomerHistoryEntry> —merge()
public
merge(CustomerHistory $history) : CustomerHistory
Parameters
- $history : CustomerHistory
Return values
CustomerHistory —toArray()
public
toArray([string $datetimeFormat = 'Y-m-d H:i:s' ]) : array<string|int, mixed>
Parameters
- $datetimeFormat : string = 'Y-m-d H:i:s'
Return values
array<string|int, mixed> —__construct()
private
__construct(array<string|int, CustomerHistoryEntry> $entries) : mixed
Parameters
- $entries : array<string|int, CustomerHistoryEntry>
Return values
mixed —sortAscending()
private
sortAscending(CustomerHistoryEntry ...$entries) : array<string|int, mixed>
Parameters
- $entries : CustomerHistoryEntry