phpDocumentor

CustomerAddonValueStorage

Interface CustomerAddonValueStorage

Table of Contents

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.

Methods

getValue()

Returns a customer addon value based on the given customer ID and key.

public getValue(int $customerId, string $key[, string $defaultValue = '' ]) : string

If the customer addon value does not exist the default value will be returned.

Parameters
$customerId : int
$key : string
$defaultValue : string = ''
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

If the customer addon values didn't exist before it will be created.

Parameters
$customerId : int
$key : string
$value : string
Tags
throws
StorageOfCustomerAddonValueFailedException
Return values
void

Search results