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
$brand
protected
string
$brand
$category
protected
string
$category
$id
protected
string
$id
$listName
protected
string
$listName
$listPosition
protected
int
$listPosition
$name
protected
string
$name
$price
protected
float
$price
$variant
protected
string
$variant
Methods
brand()
Returns brand of the item.
public
brand() : string
Return values
string —Brand of the item.
category()
Returns item category.
public
category() : string
Return values
string —Item category.
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.
id()
Returns unique ID/SKU for the item.
public
id() : string
Return values
string —Unique ID/SKU for the item.
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.
listPosition()
Returns the position of the item in the list.
public
listPosition() : int
Return values
int —The position of the item in the list.
name()
Returns item name.
public
name() : string
Return values
string —Item name.
price()
Returns purchase price of the item.
public
price() : float
Return values
float —Purchase price of the item.
variant()
Returns item variant.
public
variant() : string
Return values
string —Item variant.
__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.