ShippingInformation
in package
This is the ShippingInformation class, a macro class for the document viewHelper.
The purpose of this class is to encapsulate the logic that calculates the view parameters for the document's ShippingInformation.
Tags
Table of Contents
$document | : AbstractDocumentBase|null | |
---|---|---|
$fields | : array<string|int, mixed> | |
$pickingFields | : array<string|int, mixed> | |
__construct() | Constructor method for ShippingInformation class. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for DocumentViewHelper.php | : array<string|int, mixed> |
getProperties() | Return macro use properties | : array<string|int, mixed> |
Properties
$document
public
AbstractDocumentBase|null
$document
= null
$fields
public
array<string|int, mixed>
$fields
= ["name", "nif", "address", "city", "state", "country", "email", "mobile"]
$pickingFields
public
array<string|int, mixed>
$pickingFields
= \FWK\ViewHelpers\Document\Macro\PickingInformation::FIELDS
Methods
__construct()
Constructor method for ShippingInformation 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 DocumentViewHelper.php
public
getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
Return macro use properties
protected
getProperties() : array<string|int, mixed>