StoredOrderTotal

Extends \OrderTotal Implements \StoredOrderTotalInterface

Class StoredOrderTotal

category

System

package

Order

subpackage

Entities

Methods

OrderTotal constructor.

__construct(\StringType $title, \DecimalType $value, \StringType $valueText = null, \StringType $class = null, \IntType $sortOrder = null) 
inherited

Arguments

$title

\StringType

Order total title.

$value

\DecimalType

Order total value

$valueText

\StringType

Order total value text.

$class

\StringType

Class name.

$sortOrder

\IntType

Sort order.

Returns the class of the order total.

getClass() : string
inherited

Response

string

Class of the order total.

Returns the ID of the stored order total.

getOrderTotalId() : integer

Response

integer

Stored order total ID.

Returns the sort order of the order total.

getSortOrder() : integer
inherited

Response

integer

Sort order of the order total.

Returns the title of the order total.

getTitle() : string
inherited

Response

string

Title of the order total.

Returns the value of the order total.

getValue() : float
inherited

Response

float

Value of the order total.

Returns the value text of the order total.

getValueText() : string
inherited

Response

string

Value text of the order total.

Sets class of the order total.

setClass(\StringType $class) : \OrderTotal
inherited

Arguments

$class

\StringType

Class of the order total.

Response

\OrderTotal

Same instance for method chaining.

Sets sort order of the order total.

setSortOrder(\IntType $sortOrder) : \OrderTotal
inherited

Arguments

$sortOrder

\IntType

Sort order of the order total.

Response

\OrderTotal

Same instance for method chaining.

Sets title of the order total.

setTitle(\StringType $title) : \OrderTotal
inherited

Arguments

$title

\StringType

Title of the order total.

Response

\OrderTotal

Same instance for method chaining.

Sets value of the order total.

setValue(\DecimalType $value) : \OrderTotal
inherited

Arguments

$value

\DecimalType

Value of the order total.

Response

\OrderTotal

Same instance for method chaining.

Sets value text of the order total.

setValueText(\StringType $valueText) : \OrderTotal
inherited

Arguments

$valueText

\StringType

Value text of the order total.

Response

\OrderTotal

Same instance for method chaining.

Properties

Order Total ID.

orderTotalId : integer
var

Type(s)

integer

Title.

title : string
inherited
var

Type(s)

string

Value.

value : float
inherited
var

Type(s)

float

Value text.

valueText : string
inherited
var

Type(s)

string

Class name.

class : string
inherited
var

Type(s)

string

Sort order.

sortOrder : integer
inherited
var

Type(s)

integer