PHP Class TheIconic\Tracking\GoogleAnalytics\Parameters\CompoundParameterCollection

Contains a set of compound parameters. The name of the collection is prepend before the compound parameter names. The name can be indexed by the placeholder as specified in the Indexable trait.
Inheritance: implements IteratorAggregat\IteratorAggregate, use trait TheIconic\Tracking\GoogleAnalytics\Traits\Indexable
Datei anzeigen Open project: theiconic/php-ga-measurement-protocol

Protected Properties

Property Type Description
$items CompoundParameter[] Holds all the compound parameters that belong to the collection.
$name string Name for the collection of compound parameters. Its prepend to the payload names of the compound parameter.

Public Methods

Method Description
__construct ( string $index = '' ) Indexes the name in case it has a placeholder.
add ( CompoundParameter $compoundParameter )
getIterator ( )
getParametersArray ( )
getReadableItems ( ) : array Gets the human readable items for the parameter.

Method Details

__construct() public method

Indexes the name in case it has a placeholder.
public __construct ( string $index = '' )
$index string

add() public method

public add ( CompoundParameter $compoundParameter )
$compoundParameter CompoundParameter

getIterator() public method

public getIterator ( )

getParametersArray() public method

public getParametersArray ( )

getReadableItems() public method

Gets the human readable items for the parameter.
public getReadableItems ( ) : array
return array

Property Details

$items protected_oe property

Holds all the compound parameters that belong to the collection.
protected CompoundParameter[],TheIconic\Tracking\GoogleAnalytics\Parameters $items
return CompoundParameter[]

$name protected_oe property

Name for the collection of compound parameters. Its prepend to the payload names of the compound parameter.
protected string $name
return string