Class OrderTotal

Class OrderTotal

OrderTotal implements OrderTotalInterface

Direct known subclasses

StoredOrderTotal

Package: Order\Entities
Category: System
Located at Services/Core/Order/Entities/OrderTotal.inc.php

Methods summary

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

OrderTotal constructor.

public getTitle( void ) : string

Returns the title of the order total.

public getValue( void ) : float

Returns the value of the order total.

public getValueText( void ) : string

Returns the value text of the order total.

public getClass( void ) : string

Returns the class of the order total.

public getSortOrder( void ) : integer

Returns the sort order of the order total.

public setTitle( StringType $title ) : OrderTotal

Sets title of the order total.

public setValue( DecimalType $value ) : OrderTotal

Sets value of the order total.

public setValueText( StringType $valueText ) : OrderTotal

Sets value text of the order total.

public setClass( StringType $class ) : OrderTotal

Sets class of the order total.

public setSortOrder( IntType $sortOrder ) : OrderTotal

Sets sort order of the order total.

Properties summary

protected $title : string

Title.

''
protected $value : float

Value.

0.00
protected $valueText : string

Value text.

''
protected $class : string

Class name.

''
protected $sortOrder : integer

Sort order.

0