Copied!

BasketEventData

BasketEventData.php : 14
Read-only
Final

Base class for tracking event data with common parameter building logic.

Properties

public $basketContent

BasketEventData.php : 17
public string $basketContent

public $basketId

BasketEventData.php : 18
public string $basketId

public $categoryPath

BasketEventData.php : 21
public string|null $categoryPath = null

public $itemPrice

BasketEventData.php : 22
public string|null $itemPrice = null

public $masterId

BasketEventData.php : 25
public string|null $masterId = null

public $productCode

BasketEventData.php : 19
public string|null $productCode = null

public $productName

BasketEventData.php : 20
public string|null $productName = null

public $quantity

BasketEventData.php : 23
public int|null $quantity = null

public $websiteId

BasketEventData.php : 24
public string|null $websiteId = null

Methods

public__construct()

BasketEventData.php : 16
public __construct(string $basketContent, string $basketId[, string|null $productCode = null ][, string|null $productName = null ][, string|null $categoryPath = null ][, string|null $itemPrice = null ][, int|null $quantity = null ][, string|null $websiteId = null ][, string|null $masterId = null ])

Parameters

Name Type Default value Description
$basketContent string - -
$basketId string - -
$productCode string|null null -
$productName string|null null -
$categoryPath string|null null -
$itemPrice string|null null -
$quantity int|null null -
$websiteId string|null null -
$masterId string|null null -

publicgetEventType()

BasketEventData.php : 28
public getEventType() : EventType

Return values

EventType

publicgetTemplateHint()

AbstractEventData.php : 44

Returns optional template hint for special rendering needs.

public getTemplateHint() : string|null

Return values

string|null

publictoArray()

BasketEventData.php : 33

Returns Raptor tracking parameters.

public toArray() : array<string, mixed>

Return values

array<string, mixed>

protectedbuildParameters()

AbstractEventData.php : 24
protected buildParameters(array<string, mixed> $required[, array<string, mixed> $optional = [] ]) : array<string, mixed>

Parameters

Name Type Default value Description
$required array<string, mixed> - -
$optional array<string, mixed> [] -

Return values

array<string, mixed>