Base class for tracking event data with common parameter building logic.
Methods¶
__construct()
¶
BasketEventData.php
:
16
|
|
|
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 | - |
getEventType()
¶
BasketEventData.php
:
28
|
|
|
Return values
getTemplateHint()
¶
AbstractEventData.php
:
44
Returns optional template hint for special rendering needs.
|
|
|
Return values
string|null
toArray()
¶
BasketEventData.php
:
33
Returns Raptor tracking parameters.
|
|
|
Return values
array<string, mixed>
buildParameters()
¶
AbstractEventData.php
:
24
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $required | array<string, mixed> | - | - |
| $optional | array<string, mixed> | [] | - |
Return values
array<string, mixed>