ProductComparison
in package
This is the ProductComparison 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 rate.
Tags
Table of Contents
$featuredImage | : string|null | |
---|---|---|
$offerImage | : string|null | |
$productComparison | : ProductComparison|null | |
$tableItems | : int|null | |
__construct() | Constructor method for ProductComparison class. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for ProductViewHelper.php | : array<string|int, mixed> |
getProperties() | Return macro use properties | : array<string|int, mixed> |
Properties
$featuredImage
public
string|null
$featuredImage
= null
$offerImage
public
string|null
$offerImage
= null
$productComparison
public
ProductComparison|null
$productComparison
= null
$tableItems
public
int|null
$tableItems
= 4
Methods
__construct()
Constructor method for ProductComparison 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()
Return macro use properties
protected
getProperties() : array<string|int, mixed>