CustomerAddonValueStorage
in package
implements
CustomerAddonValueStorage
Class CustomerAddonValueStorage
Interfaces, Classes and Traits
- CustomerAddonValueStorage
- Interface CustomerAddonValueStorage
Table of Contents
- $factory : CustomerAddonValueFactory
- $repository : CustomerAddonValueRepository
- __construct() : mixed
- getValue() : string
- Returns a customer addon value based on the given customer ID and key.
- setValue() : void
- Sets a customer addon value based on the given customer ID, key and value.
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 —getValue()
Returns a customer addon value based on the given customer ID and key.
public
getValue(int $customerId, string $key[, string $defaultValue = '' ]) : string
Parameters
- $customerId : int
- $key : string
- $defaultValue : string = ''
Tags
Return values
string —setValue()
Sets a customer addon value based on the given customer ID, key and value.
public
setValue(int $customerId, string $key, string $value) : void
Parameters
- $customerId : int
- $key : string
- $value : string