phpDocumentor

GoogleAnalyticsProductAttributeCollection
in package

Class GoogleAnalyticsProductAttributeCollection

Table of Contents

$items  : array<string|int, GoogleAnalyticsProductAttribute>
$optionIds  : array<string|int, mixed>
$valueIds  : array<string|int, mixed>
collect()  : GoogleAnalyticsProductAttributeCollection
Named constructor of GoogleAnalyticsProductAttributeCollection.
collectFromArray()  : GoogleAnalyticsProductAttributeCollection
Named constructor of GoogleAnalyticsProductAttributeCollection.
isEmpty()  : bool
Checks if collection is empty.
optionIds()  : array<string|int, mixed>
Returns the option ids of all attributes in the collection.
toArray()  : array<string|int, GoogleAnalyticsProductAttribute>
Returns the collected product attribute list items.
valueIds()  : array<string|int, mixed>
Returns the value ids of all attributes in the collection.
__construct()  : mixed
GoogleAnalyticsProductAttributeCollection constructor.
add()  : $this
Adds the given product attribute to the collection.

Properties

Methods

collectFromArray()

Named constructor of GoogleAnalyticsProductAttributeCollection.

public static collectFromArray(array<string|int, mixed> $attributes) : GoogleAnalyticsProductAttributeCollection

This way allows to create the collection by passing a well formatted array as argument.

Parameters
$attributes : array<string|int, mixed>

Array with information about the product attributes.

Return values
GoogleAnalyticsProductAttributeCollection

Search results