MetaTaxPrice extends TaxPrice implements MetaItemInterface
TaxPrice supporting meta information
Table of Contents
Interfaces
| MetaItemInterface | Meta item interface |
Properties
| $item_collection |
Methods
| __construct() | Override the constructor |
| attach() | Attaches the given item |
| detach() | Detaches the given item |
| meta() | Retrieves all attached meta items |
Methods
__construct()
Override the constructor
public
__construct(mixed $amount, mixed $type[, mixed $subtract = false ]) : mixed
Parameters
- $amount : mixed
- $type : mixed
- $subtract : mixed = false
attach()
Attaches the given item
public
attach(ItemInterface $item) : mixed
Parameters
- $item : ItemInterface
-
The Item to add
detach()
Detaches the given item
public
detach(ItemInterface $item) : mixed
Parameters
- $item : ItemInterface
-
The Item to remove
meta()
Retrieves all attached meta items
public
meta() : ItemCollection
Return values
ItemCollection —A collection containing the items