Copied!

BuyEventData

BuyEventData.php : 14
Read-only
Final

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

Properties

public $categoryPath

BuyEventData.php : 23
public string|null $categoryPath = null

public $currency

BuyEventData.php : 20
public string $currency

public $itemPrice

BuyEventData.php : 21
public string $itemPrice

public $masterId

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

public $productCode

BuyEventData.php : 17
public string $productCode

public $productName

BuyEventData.php : 18
public string $productName

public $quantity

BuyEventData.php : 22
public int $quantity

public $subtotal

BuyEventData.php : 19
public string $subtotal

public $websiteId

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

Methods

public__construct()

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

Parameters

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

publicgetEventType()

BuyEventData.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()

BuyEventData.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>