CustomerMemoWriteService
in package
implements
CustomerMemoWriteService
Class CustomerMemoWriteService
Interfaces, Classes and Traits
- CustomerMemoWriteService
- Interface CustomerMemoWriteService
Table of Contents
- $factory : CustomerMemoFactory
- $repository : CustomerMemoRepository
- __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.
- storeCustomerMemos() : void
- Stores multiple customer memos.
- parseCreationArguments() : array<string|int, mixed>
Properties
$factory
private
CustomerMemoFactory
$factory
$repository
private
CustomerMemoRepository
$repository
Methods
__construct()
public
__construct(CustomerMemoRepository $repository, CustomerMemoFactory $factory) : mixed
Parameters
- $repository : CustomerMemoRepository
- $factory : CustomerMemoFactory
Return values
mixed —createCustomerMemo()
Creates a new customer memo and returns its ID.
public
createCustomerMemo(int $customerId, int $creatorId, string $content) : CustomerMemoId
Parameters
- $customerId : int
- $creatorId : int
- $content : string
Tags
Return values
CustomerMemoId —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
Return values
CustomerMemoIds —deleteCustomerMemosByCustomerIds()
Deletes customer memos based on the given customer IDs.
public
deleteCustomerMemosByCustomerIds(int ...$ids) : void
Parameters
- $ids : int
Tags
Return values
void —deleteCustomerMemosByMemoIds()
Deletes customer memos based on the given customer memo IDs.
public
deleteCustomerMemosByMemoIds(int ...$ids) : void
Parameters
- $ids : int
Tags
Return values
void —storeCustomerMemos()
Stores multiple customer memos.
public
storeCustomerMemos(CustomerMemo ...$customerMemos) : void
Parameters
- $customerMemos : CustomerMemo
Tags
Return values
void —parseCreationArguments()
private
parseCreationArguments(array<string|int, mixed> ...$creationArguments) : array<string|int, mixed>
Parameters
- $creationArguments : array<string|int, mixed>