OrderTotalFactory
in package
implements
OrderTotalFactoryInterface
Class OrderTotalFactory
Tags
Interfaces, Classes and Traits
- OrderTotalFactoryInterface
- Interface OrderTotalFactoryInterface
Table of Contents
- createOrderTotal() : OrderTotal
- Creates an OrderTotal object.
- createStoredOrderTotal() : StoredOrderTotal
- Create a StoredOrderTotal object.
Methods
createOrderTotal()
Creates an OrderTotal object.
public
createOrderTotal(StringType $title, DecimalType $value[, StringType $valueText = null ][, StringType $class = null ][, IntType $sortOrder = null ]) : OrderTotal
Parameters
- $title : StringType
-
The title of the order total item.
- $value : DecimalType
-
The decimal value of the order total item.
- $valueText : StringType = null
-
(optional) The formatted value as text with currency and so on.
- $class : StringType = null
-
(optional) The used order total class (e.g. ot_subtotal).
- $sortOrder : IntType = null
-
(optional) The sort order of the order total item.
Return values
OrderTotal —New order total object.
createStoredOrderTotal()
Create a StoredOrderTotal object.
public
createStoredOrderTotal(IdType $orderTotalId) : StoredOrderTotal
Parameters
- $orderTotalId : IdType
-
ID of the order total item.
Return values
StoredOrderTotal —New stored order total object.