VoucherForm
in package
This is the VoucherForm 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 basket's voucher form.
Tags
Table of Contents
$basket | : Basket|null | |
---|---|---|
$forceOutput | : bool | |
__construct() | Constructor method for VoucherForm class. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for BasketViewHelper.php | : array<string|int, mixed> |
getProperties() | : array<string|int, mixed> |
Properties
$basket
public
Basket|null
$basket
= null
$forceOutput
public
bool
$forceOutput
= false
Methods
__construct()
Constructor method for VoucherForm 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()
protected
getProperties() : array<string|int, mixed>