MiniBasketWrap
in package
This is the MiniBasketWrap class, a macro class for the basket viewHelper.
The purpose of this class is to encapsulate the logic that calculates the view parameters for the mini basket.
Tags
Table of Contents
$basket | : Basket|null | |
---|---|---|
$class | : string | |
$content | : string|null | |
$showPaymentSystem | : bool | |
$showShipping | : bool | |
$showTaxIncluded | : bool|null | |
__construct() | Constructor method for MiniBasketWrap class. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for BasketViewHelper.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
= ''
$content
public
string|null
$content
= null
$showPaymentSystem
public
bool
$showPaymentSystem
= true
$showShipping
public
bool
$showShipping
= true
$showTaxIncluded
public
bool|null
$showTaxIncluded
= null
Methods
__construct()
Constructor method for MiniBasketWrap 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 BasketViewHelper.php
public
getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
Return macro use properties
protected
getProperties() : array<string|int, mixed>