PHP Класс TheIconic\Tracking\GoogleAnalytics\Parameters\CompoundParameter

A compound parameter represents a set of parameters that are part of a collection. There is a parameter name mapper that maps a human readable name that is used for passing the data into the real name that goes in the payload.
Наследование: implements TheIconic\Tracking\GoogleAnalytics\Parameters\CompoundParameterInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$parameterNameMapper array Maps a human readable name used when initializing the compound parameter into the real name used in the payload.
$parameters array After translating the human readable names into the payload ones, this collections contains the map for the payload names and the values to be sent.
$readableParameters array After translating the human readable names into the payload ones, this collections contains the map for the payload names and the values to be sent.
$requiredParameters array They are in the same human readable name as in the mapper above.

Открытые методы

Метод Описание
__construct ( array $compoundData ) Validates the required parameters are passed, then translates using the mapper to later save along with the values.
getParameters ( )
getReadableParameters ( )

Защищенные методы

Метод Описание
saveCompoundParameterData ( array $compoundData ) Translates the human readable names into the payload ones and saves them along with the values.

Описание методов

__construct() публичный Метод

Validates the required parameters are passed, then translates using the mapper to later save along with the values.
public __construct ( array $compoundData )
$compoundData array

getParameters() публичный Метод

public getParameters ( )

getReadableParameters() публичный Метод

saveCompoundParameterData() защищенный Метод

Translates the human readable names into the payload ones and saves them along with the values.
protected saveCompoundParameterData ( array $compoundData )
$compoundData array

Описание свойств

$parameterNameMapper защищенное свойство

Maps a human readable name used when initializing the compound parameter into the real name used in the payload.
protected array $parameterNameMapper
Результат array

$parameters защищенное свойство

After translating the human readable names into the payload ones, this collections contains the map for the payload names and the values to be sent.
protected array $parameters
Результат array

$readableParameters защищенное свойство

After translating the human readable names into the payload ones, this collections contains the map for the payload names and the values to be sent.
protected array $readableParameters
Результат array

$requiredParameters защищенное свойство

They are in the same human readable name as in the mapper above.
protected array $requiredParameters
Результат array