phpDocumentor

GoogleAnalyticsProductImpression
in package
implements GoogleAnalyticsProductImpressionInterface

Class GoogleAnalyticsProductImpression

Interfaces, Classes and Traits

GoogleAnalyticsProductImpressionInterface
Interface GoogleAnalyticsProductImpressionInterface

Table of Contents

$brand  : string
$category  : string
$id  : string
$listName  : string
$listPosition  : int
$name  : string
$price  : float
$variant  : string
brand()  : string
Returns brand of the item.
category()  : string
Returns item category.
create()  : static|GoogleAnalyticsProductImpression
Named constructor of GoogleAnalyticsProductImpression.
id()  : string
Returns unique ID/SKU for the item.
listName()  : string
Returns the list in which the item was presented to the user.
listPosition()  : int
Returns the position of the item in the list.
name()  : string
Returns item name.
price()  : float
Returns purchase price of the item.
variant()  : string
Returns item variant.
__construct()  : mixed
GoogleAnalyticsProductImpression constructor.

Properties

Methods

create()

Named constructor of GoogleAnalyticsProductImpression.

public static create([string|null $id = null ][, string|null $name = null ][, string|null $listName = null ][, string|null $brand = null ][, string|null $category = null ][, string|null $variant = null ][, int|null $listPosition = null ][, float|null $price = null ]) : static|GoogleAnalyticsProductImpression
Parameters
$id : string|null = null

Unique ID/SKU for the item.

$name : string|null = null

Item name.

$listName : string|null = null

The list in which the item was presented to the user.

$brand : string|null = null

Brand of the item.

$category : string|null = null

Item category.

$variant : string|null = null

Item variant.

$listPosition : int|null = null

The position of the item in the list.

$price : float|null = null

Purchase price of the item.

Return values
static|GoogleAnalyticsProductImpression

New instance.

listName()

Returns the list in which the item was presented to the user.

public listName() : string
Return values
string

The list in which the item was presented to the user.

__construct()

GoogleAnalyticsProductImpression constructor.

private __construct([NonEmptyStringType|null $id = null ][, NonEmptyStringType|null $name = null ][, NonEmptyStringType|null $listName = null ][, NonEmptyStringType|null $brand = null ][, NonEmptyStringType|null $category = null ][, NonEmptyStringType|null $variant = null ][, IntType|null $listPosition = null ][, DecimalType|null $price = null ]) : mixed
Parameters
$id : NonEmptyStringType|null = null

Unique ID/SKU for the item.

$name : NonEmptyStringType|null = null

Item name.

$listName : NonEmptyStringType|null = null

The list in which the item was presented to the user.

$brand : NonEmptyStringType|null = null

Brand of the item.

$category : NonEmptyStringType|null = null

Item category.

$variant : NonEmptyStringType|null = null

Item variant.

$listPosition : IntType|null = null

The position of the item in the list.

$price : DecimalType|null = null

Purchase price of the item.

Return values
mixed

Search results