RewardPoints
in package
This is the RewardPoints class, a macro class for the productViewHelper.
The purpose of this class is to encapsulate the logic that calculates the view parameters for the product's wishlist button.
Tags
Table of Contents
$rewardPoints | : ElementCollection|null | |
---|---|---|
$showHeader | : bool | |
$showRulesCondition | : bool | |
$showRulesHeader | : bool | |
__construct() | Constructor method for RewardPoints class. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for ProductViewHelper.php | : array<string|int, mixed> |
getProperties() | : array<string|int, mixed> |
Properties
$rewardPoints
public
ElementCollection|null
$rewardPoints
= null
$showHeader
public
bool
$showHeader
= true
$showRulesCondition
public
bool
$showRulesCondition
= true
$showRulesHeader
public
bool
$showRulesHeader
= true
Methods
__construct()
Constructor method for RewardPoints class.
public
__construct(array<string|int, mixed> $arguments) : mixed
Parameters
- $arguments : array<string|int, mixed>
Tags
Return values
mixed —getViewParameters()
This method returns all calculated arguments and new parameters for ProductViewHelper.php
public
getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
protected
getProperties() : array<string|int, mixed>