CustomerMemoWriter
in package
Class CustomerMemoWriter
Table of Contents
- $connection : Connection
- __construct() : mixed
- createCustomerMemo() : int
- Creates a new customer memo and returns its ID.
- createMultipleCustomerMemos() : array<string|int, int>
- 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.
- storeCustomerMemos() : void
- Stores multiple customer memos.
- deleteCustomerMemoByCustomerId() : void
- deleteCustomerMemoById() : void
- storeCustomerMemo() : void
Properties
$connection
private
Connection
$connection
Methods
__construct()
public
__construct(Connection $connection) : mixed
Parameters
- $connection : Connection
Return values
mixed —createCustomerMemo()
Creates a new customer memo and returns its ID.
public
createCustomerMemo(CustomerId $customerId, CreatorId $creatorId, string $content) : int
Parameters
- $customerId : CustomerId
- $creatorId : CreatorId
- $content : string
Tags
Return values
int —createMultipleCustomerMemos()
Creates multiple customer memos and returns their IDs.
public
createMultipleCustomerMemos(array<string|int, mixed> ...$creationArguments) : array<string|int, int>
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
Return values
array<string|int, int> —deleteCustomerMemosByCustomerIds()
Deletes customer memos based on the given customer IDs.
public
deleteCustomerMemosByCustomerIds(CustomerId ...$ids) : void
Parameters
- $ids : CustomerId
Tags
Return values
void —deleteCustomerMemosByMemoIds()
Deletes customer memos based on the given customer memo IDs.
public
deleteCustomerMemosByMemoIds(CustomerMemoId ...$ids) : void
Parameters
- $ids : CustomerMemoId
Tags
Return values
void —storeCustomerMemos()
Stores multiple customer memos.
public
storeCustomerMemos(CustomerMemo ...$customerMemos) : void
Parameters
- $customerMemos : CustomerMemo
Tags
Return values
void —deleteCustomerMemoByCustomerId()
private
deleteCustomerMemoByCustomerId(CustomerId $id) : void
Parameters
- $id : CustomerId
Return values
void —deleteCustomerMemoById()
private
deleteCustomerMemoById(CustomerMemoId $id) : void
Parameters
- $id : CustomerMemoId
Return values
void —storeCustomerMemo()
private
storeCustomerMemo(CustomerMemo $customerMemo) : void
Parameters
- $customerMemo : CustomerMemo