OrderItemAttribute
in package
implements
OrderItemAttributeInterface
Class OrderItemAttribute
Tags
Interfaces, Classes and Traits
- OrderItemAttributeInterface
- Interface OrderItemAttributeInterface
Table of Contents
- $name : string
- Name.
- $optionId : IdType
- Option ID.
- $optionValueId : IdType
- Option value ID.
- $price : float
- Price.
- $priceType : string
- Price type.
- $value : string
- Value.
- __construct() : mixed
- OrderItemAttribute constructor.
- getName() : string
- Returns the name of the order item attribute.
- getOptionId() : IdType
- Returns the option ID.
- getOptionValueId() : IdType
- Returns the option value ID.
- getPrice() : float
- Returns the price of the order item attribute.
- getPriceType() : string
- Returns the price type of the order item attribute.
- getValue() : string
- Returns the value of the order item attribute.
- setName() : OrderItemAttribute
- Sets the name of the order item attribute.
- setOptionId() : OrderItemAttribute
- Sets the option ID.
- setOptionValueId() : OrderItemAttribute
- Set option value ID.
- setPrice() : OrderItemAttribute
- Sets the price of the order item attribute.
- setPriceType() : OrderItemAttribute
- Sets the price type of the order item attribute.
- setValue() : OrderItemAttribute
- Sets the value of the order item attribute.
Properties
$name
Name.
protected
string
$name
= ''
$optionId
Option ID.
protected
IdType
$optionId
= 0
$optionValueId
Option value ID.
protected
IdType
$optionValueId
= 0
$price
Price.
protected
float
$price
= 0.0
$priceType
Price type.
protected
string
$priceType
= ''
$value
Value.
protected
string
$value
= ''
Methods
__construct()
OrderItemAttribute constructor.
public
__construct(StringType $name, StringType $value) : mixed
Parameters
- $name : StringType
-
Order item attribute name.
- $value : StringType
-
Order item attribute value.
Return values
mixed —getName()
Returns the name of the order item attribute.
public
getName() : string
Return values
string —Name of the order item attribute.
getOptionId()
Returns the option ID.
public
getOptionId() : IdType
Return values
IdType —Option ID.
getOptionValueId()
Returns the option value ID.
public
getOptionValueId() : IdType
Return values
IdType —Option value ID.
getPrice()
Returns the price of the order item attribute.
public
getPrice() : float
Return values
float —Price of the order item attribute.
getPriceType()
Returns the price type of the order item attribute.
public
getPriceType() : string
Return values
string —Price type of the order item attribute.
getValue()
Returns the value of the order item attribute.
public
getValue() : string
Return values
string —Value of the order item attribute.
setName()
Sets the name of the order item attribute.
public
setName(StringType $name) : OrderItemAttribute
Parameters
- $name : StringType
-
Name of the order item attribute.
Return values
OrderItemAttribute —Same instance for method chaining.
setOptionId()
Sets the option ID.
public
setOptionId(IdType $optionId) : OrderItemAttribute
Parameters
- $optionId : IdType
-
Option ID.
Return values
OrderItemAttribute —Same instance for method chaining.
setOptionValueId()
Set option value ID.
public
setOptionValueId(IdType $optionValueId) : OrderItemAttribute
Parameters
- $optionValueId : IdType
-
Option value ID.
Return values
OrderItemAttribute —Same instance for method chaining.
setPrice()
Sets the price of the order item attribute.
public
setPrice(DecimalType $price) : OrderItemAttribute
Parameters
- $price : DecimalType
-
Price of the order item attribute.
Return values
OrderItemAttribute —Same instance for method chaining.
setPriceType()
Sets the price type of the order item attribute.
public
setPriceType(StringType $priceType) : OrderItemAttribute
Parameters
- $priceType : StringType
-
Price type of the order item attribute.
Return values
OrderItemAttribute —Same instance for method chaining.
setValue()
Sets the value of the order item attribute.
public
setValue(StringType $value) : OrderItemAttribute
Parameters
- $value : StringType
-
Value of the order item attribute.
Return values
OrderItemAttribute —Same instance for method chaining.