RedeemRewardPoints
in package
This is the RedeemRewardPoints class, a macro class for the basketViewHelper.
The purpose of this class is to encapsulate the logic that calculates the view parameters for the basket reward points.
Tags
Table of Contents
$basket | : Basket|null | |
---|---|---|
$class | : string | |
$maxAvailableRewardPoints | : array<string|int, mixed> | |
$quantityPlugin | : bool | |
$rewardPoints | : ElementCollection|null | |
$showRewardPointsHeader | : bool | |
$showSelectableBox | : bool | |
__construct() | Constructor method for RewardPoints. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for UserViewHelper.php | : array<string|int, mixed> |
getProperties() | Return macro use properties | : array<string|int, mixed> |
Properties
$basket
public
Basket|null
$basket
= null
$class
public
string
$class
= ''
$maxAvailableRewardPoints
public
array<string|int, mixed>
$maxAvailableRewardPoints
= []
$quantityPlugin
public
bool
$quantityPlugin
= true
$rewardPoints
public
ElementCollection|null
$rewardPoints
= null
$showRewardPointsHeader
public
bool
$showRewardPointsHeader
= true
$showSelectableBox
public
bool
$showSelectableBox
= false
Methods
__construct()
Constructor method for RewardPoints.
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 UserViewHelper.php
public
getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
Return macro use properties
protected
getProperties() : array<string|int, mixed>