Blesta Source Documentation

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
Properties

$item_collection

private ItemCollection $item_collection

List of attached 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

Tags
subpackage

core.Pricing.MetaItem

copyright

Copyright (c) 2019, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results