phpDocumentor

CustomerHistoryMapper extends CustomerHistoryFactory

Class CustomerHistoryMapper

Table of Contents

createCustomerHistory()  : CustomerHistory
createCustomerHistoryEntryDto()  : CustomerHistoryEntryDto
createCustomerHistoryEntryDtos()  : CustomerHistoryEntryDtos
createCustomerId()  : CustomerId
mapCustomerHistory()  : CustomerHistory
mapCustomerHistoryEntry()  : CustomerHistoryEntry
typeCastPayload()  : array<string|int, mixed>

Methods

createCustomerHistoryEntryDto()

public createCustomerHistoryEntryDto(int $customerId, array<string|int, mixed> $payload, string $type, DateTimeImmutable $date) : CustomerHistoryEntryDto
Parameters
$customerId : int
$payload : array<string|int, mixed>
$type : string
$date : DateTimeImmutable
Return values
CustomerHistoryEntryDto

typeCastPayload()

private typeCastPayload(array<string|int, mixed> $payload) : array<string|int, mixed>
Parameters
$payload : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results