OrderTotalFactoryInterface
in
Interface OrderTotalFactoryInterface
Tags
Table of Contents
- createOrderTotal() : OrderTotalInterface
- Creates an OrderTotal object.
- createStoredOrderTotal() : StoredOrderTotalInterface
- Creates a StoredOrderTotal object.
Methods
createOrderTotal()
Creates an OrderTotal object.
public
createOrderTotal(StringType $title, DecimalType $value[, StringType $valueText = null ][, StringType $class = null ][, IntType $sortOrder = null ]) : OrderTotalInterface
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
OrderTotalInterface —New OrderTotal instance.
createStoredOrderTotal()
Creates a StoredOrderTotal object.
public
createStoredOrderTotal(IdType $orderTotalId) : StoredOrderTotalInterface
Parameters
- $orderTotalId : IdType
-
ID of the order total item.
Return values
StoredOrderTotalInterface —New StoredOrderTotal instance.