phpDocumentor

CustomerMemoRepository extends AbstractEventDispatchingRepository implements CustomerMemoRepository

Class CustomerMemoRepository

Interfaces, Classes and Traits

CustomerMemoRepository
Interface CustomerMemoRepository

Table of Contents

$eventDispatcher  : EventDispatcherInterface
$mapper  : CustomerMemoMapper
$reader  : CustomerMemoReader
$writer  : CustomerMemoWriter
__construct()  : mixed
createCustomerMemo()  : CustomerMemoId
Creates a new customer memo and returns its ID.
createMultipleCustomerMemos()  : CustomerMemoIds
Creates multiple customer memos and returns their IDs.
deleteCustomerMemosByCustomerIds()  : void
Deletes customer memos based on the given customer IDs.
deleteCustomerMemosByMemoIds()  : void
Deletes customer memos based on the given customer memo IDs.
dispatchEntityEvents()  : void
dispatchEvent()  : void
filterCustomerMemos()  : CustomerMemos
Returns a filtered and paginated collection of customer memos based on the given filter and sorting arguments.
getCustomerMemoById()  : CustomerMemo
Returns a specific customer memo based on the given ID.
getCustomerMemos()  : CustomerMemos
Returns all available customer memos.
getCustomerMemosTotalCount()  : int
Returns total count of customer memos based on the given filter arguments.
storeCustomerMemos()  : void
Stores multiple customer memos.
setEventDispatcher()  : void
assertArgumentIsOfCorrectType()  : void

Properties

Methods

createMultipleCustomerMemos()

Creates multiple customer memos and returns their IDs.

public createMultipleCustomerMemos(array<string|int, mixed> ...$creationArguments) : CustomerMemoIds
Parameters
$creationArguments : array<string|int, mixed>

Provided array must contain arguments like they are used in the single creation method. Provide multiple arrays for multi creation.

Tags
inheritDoc
Return values
CustomerMemoIds

deleteCustomerMemosByCustomerIds()

Deletes customer memos based on the given customer IDs.

public deleteCustomerMemosByCustomerIds(CustomerId ...$ids) : void
Parameters
$ids : CustomerId
Tags
inheritDoc
throws
Exception
Return values
void

filterCustomerMemos()

Returns a filtered and paginated collection of customer memos based on the given filter and sorting arguments.

public filterCustomerMemos(CustomerId $customerId, CustomerMemoFilters $filters, CustomerMemoSorting $sorting, Pagination $pagination) : CustomerMemos
Parameters
$customerId : CustomerId
$filters : CustomerMemoFilters
$sorting : CustomerMemoSorting
$pagination : Pagination
Tags
inheritDoc
throws
Exception
Return values
CustomerMemos

setEventDispatcher()

protected setEventDispatcher(EventDispatcherInterface $eventDispatcher) : void
Parameters
$eventDispatcher : EventDispatcherInterface
Return values
void

assertArgumentIsOfCorrectType()

private assertArgumentIsOfCorrectType(mixed $actual, string $arrayPosition, string $class, int $index) : void
Parameters
$actual : mixed
$arrayPosition : string
$class : string
$index : int
Return values
void

Search results