CustomerAddonValueWriteService
in package
implements
CustomerAddonValueWriteService
Class CustomerAddonValueWriteService
Interfaces, Classes and Traits
- CustomerAddonValueWriteService
- Interface CustomerAddonValueWriteService
Table of Contents
- $factory : CustomerAddonValueFactory
- $repository : CustomerAddonValueRepository
- __construct() : mixed
- createCustomerAddonValue() : CustomerAddonValueId
- Creates a new customer addon value and returns its ID.
- createMultipleCustomerAddonValues() : CustomerAddonValueIds
- Creates multiple customer addon values and returns their IDs.
- deleteCustomerAddonValuesByCustomerIds() : void
- Deletes all customer addon values based on the given customer IDs.
- deleteCustomerAddonValuesByIds() : void
- Deletes customer addon values based on the given customer addon value IDs.
- deleteCustomerAddonValuesByKeys() : void
- Deletes all customer addon values based on the given addon value keys.
- storeCustomerAddonValues() : void
- Stores multiple customer addon values.
Properties
$factory
private
CustomerAddonValueFactory
$factory
$repository
private
CustomerAddonValueRepository
$repository
Methods
__construct()
public
__construct(CustomerAddonValueRepository $repository, CustomerAddonValueFactory $factory) : mixed
Parameters
- $repository : CustomerAddonValueRepository
- $factory : CustomerAddonValueFactory
Return values
mixed —createCustomerAddonValue()
Creates a new customer addon value and returns its ID.
public
createCustomerAddonValue(int $customerId, string $key, string $value) : CustomerAddonValueId
Parameters
- $customerId : int
- $key : string
- $value : string
Tags
Return values
CustomerAddonValueId —createMultipleCustomerAddonValues()
Creates multiple customer addon values and returns their IDs.
public
createMultipleCustomerAddonValues(array<string|int, mixed> ...$creationArguments) : CustomerAddonValueIds
Parameters
- $creationArguments : array<string|int, mixed>
Tags
Return values
CustomerAddonValueIds —deleteCustomerAddonValuesByCustomerIds()
Deletes all customer addon values based on the given customer IDs.
public
deleteCustomerAddonValuesByCustomerIds(int ...$ids) : void
Parameters
- $ids : int
Tags
Return values
void —deleteCustomerAddonValuesByIds()
Deletes customer addon values based on the given customer addon value IDs.
public
deleteCustomerAddonValuesByIds(array<string|int, mixed> ...$customerAddonValueIds) : void
Parameters
- $customerAddonValueIds : array<string|int, mixed>
Tags
Return values
void —deleteCustomerAddonValuesByKeys()
Deletes all customer addon values based on the given addon value keys.
public
deleteCustomerAddonValuesByKeys(string ...$keys) : void
Parameters
- $keys : string
Tags
Return values
void —storeCustomerAddonValues()
Stores multiple customer addon values.
public
storeCustomerAddonValues(CustomerAddonValue ...$customerAddonValues) : void
Parameters
- $customerAddonValues : CustomerAddonValue