Copied!

BasketEventData

BasketEventData.php : 14
Read-only
Final

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

Methods

public__construct()

BasketEventData.php : 16
public __construct(string $basketContent, string $basketId[, string|null $productId = 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 - -
$productId 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>