StoredOrderItemAttribute
extends OrderItemAttribute
in package
implements
StoredOrderItemAttributeInterface
Class StoredOrderItemAttribute
Tags
Interfaces, Classes and Traits
- StoredOrderItemAttributeInterface
- Interface StoredOrderItemAttributeInterface
Table of Contents
- $name : string
- Name.
- $optionId : IdType
- Option ID.
- $optionValueId : IdType
- Option value ID.
- $orderItemAttributeId : int
- Order item attribute ID.
- $price : float
- Price.
- $priceType : string
- Price type.
- $value : string
- Value.
- __construct() : mixed
- StoredOrderItemAttribute constructor.
- getName() : string
- Returns the name of the order item attribute.
- getOptionId() : IdType
- Returns the option ID.
- getOptionValueId() : IdType
- Returns the option value ID.
- getOrderItemAttributeId() : int
- Returns the ID of the stored order item attribute.
- 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
$orderItemAttributeId
Order item attribute ID.
protected
int
$orderItemAttributeId
$price
Price.
protected
float
$price
= 0.0
$priceType
Price type.
protected
string
$priceType
= ''
$value
Value.
protected
string
$value
= ''
Methods
__construct()
StoredOrderItemAttribute constructor.
public
__construct(IdType $orderItemAttributeId) : mixed
Parameters
- $orderItemAttributeId : IdType
-
IDd of order item attribute.
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.
getOrderItemAttributeId()
Returns the ID of the stored order item attribute.
public
getOrderItemAttributeId() : int
Return values
int —Order item attribute 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.