phpDocumentor

OrderTotalFactory
in package
implements OrderTotalFactoryInterface

Class OrderTotalFactory

Tags
category

System

subpackage

Factories

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.

Search results