OrderTotal
in package
implements
OrderTotalInterface
Class OrderTotal
Tags
Interfaces, Classes and Traits
- OrderTotalInterface
- Interface OrderTotalInterface
Table of Contents
- $class : string
- Class name.
- $sortOrder : int
- Sort order.
- $title : string
- Title.
- $value : float
- Value.
- $valueText : string
- Value text.
- __construct() : mixed
- OrderTotal constructor.
- getClass() : string
- Returns the class of the order total.
- getSortOrder() : int
- Returns the sort order of the order total.
- getTitle() : string
- Returns the title of the order total.
- getValue() : float
- Returns the value of the order total.
- getValueText() : string
- Returns the value text of the order total.
- setClass() : OrderTotal
- Sets class of the order total.
- setSortOrder() : OrderTotal
- Sets sort order of the order total.
- setTitle() : OrderTotal
- Sets title of the order total.
- setValue() : OrderTotal
- Sets value of the order total.
- setValueText() : OrderTotal
- Sets value text of the order total.
Properties
$class
Class name.
protected
string
$class
= ''
$sortOrder
Sort order.
protected
int
$sortOrder
= 0
$title
Title.
protected
string
$title
= ''
$value
Value.
protected
float
$value
= 0.0
$valueText
Value text.
protected
string
$valueText
= ''
Methods
__construct()
OrderTotal constructor.
public
__construct(StringType $title, DecimalType $value[, StringType $valueText = null ][, StringType $class = null ][, IntType $sortOrder = null ]) : mixed
Parameters
- $title : StringType
-
Order total title.
- $value : DecimalType
-
Order total value
- $valueText : StringType = null
-
Order total value text.
- $class : StringType = null
-
Class name.
- $sortOrder : IntType = null
-
Sort order.
Return values
mixed —getClass()
Returns the class of the order total.
public
getClass() : string
Return values
string —Class of the order total.
getSortOrder()
Returns the sort order of the order total.
public
getSortOrder() : int
Return values
int —Sort order of the order total.
getTitle()
Returns the title of the order total.
public
getTitle() : string
Return values
string —Title of the order total.
getValue()
Returns the value of the order total.
public
getValue() : float
Return values
float —Value of the order total.
getValueText()
Returns the value text of the order total.
public
getValueText() : string
Return values
string —Value text of the order total.
setClass()
Sets class of the order total.
public
setClass(StringType $class) : OrderTotal
Parameters
- $class : StringType
-
Class of the order total.
Return values
OrderTotal —Same instance for method chaining.
setSortOrder()
Sets sort order of the order total.
public
setSortOrder(IntType $sortOrder) : OrderTotal
Parameters
- $sortOrder : IntType
-
Sort order of the order total.
Return values
OrderTotal —Same instance for method chaining.
setTitle()
Sets title of the order total.
public
setTitle(StringType $title) : OrderTotal
Parameters
- $title : StringType
-
Title of the order total.
Return values
OrderTotal —Same instance for method chaining.
setValue()
Sets value of the order total.
public
setValue(DecimalType $value) : OrderTotal
Parameters
- $value : DecimalType
-
Value of the order total.
Return values
OrderTotal —Same instance for method chaining.
setValueText()
Sets value text of the order total.
public
setValueText(StringType $valueText) : OrderTotal
Parameters
- $valueText : StringType
-
Value text of the order total.
Return values
OrderTotal —Same instance for method chaining.