StoredOrderTotal
extends OrderTotal
in package
implements
StoredOrderTotalInterface
Class StoredOrderTotal
Tags
Interfaces, Classes and Traits
- StoredOrderTotalInterface
- Interface StoredOrderTotalInterface
Table of Contents
- $class : string
- Class name.
- $orderTotalId : int
- Order Total ID.
- $sortOrder : int
- Sort order.
- $title : string
- Title.
- $value : float
- Value.
- $valueText : string
- Value text.
- __construct() : mixed
- StoredOrderTotal constructor.
- getClass() : string
- Returns the class of the order total.
- getOrderTotalId() : int
- Returns the ID of the stored 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
= ''
$orderTotalId
Order Total ID.
protected
int
$orderTotalId
$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()
StoredOrderTotal constructor.
public
__construct(IdType $orderTotalId) : mixed
Parameters
- $orderTotalId : IdType
-
Order total ID.
Return values
mixed —getClass()
Returns the class of the order total.
public
getClass() : string
Return values
string —Class of the order total.
getOrderTotalId()
Returns the ID of the stored order total.
public
getOrderTotalId() : int
Return values
int —Stored order total ID.
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.