phpDocumentor

OrderTotalFactoryInterface

Interface OrderTotalFactoryInterface

Tags
category

System

subpackage

Interfaces

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.

Search results