OrderItemAttribute

Implements \OrderItemAttributeInterface

Class OrderItemAttribute

category

System

package

Order

subpackage

Entities

Methods

OrderItemAttribute constructor.

__construct(\StringType $name, \StringType $value) 

Arguments

$name

\StringType

Order item attribute name.

$value

\StringType

Order item attribute value.

Returns the name of the order item attribute.

getName() : string

Response

string

Name of the order item attribute.

Returns the option ID.

getOptionId() : \IdType

Response

\IdType

Option ID.

Returns the option value ID.

getOptionValueId() : \IdType

Response

\IdType

Option value ID.

Returns the price of the order item attribute.

getPrice() : float

Response

float

Price of the order item attribute.

Returns the price type of the order item attribute.

getPriceType() : string

Response

string

Price type of the order item attribute.

Returns the value of the order item attribute.

getValue() : string

Response

string

Value of the order item attribute.

Sets the name of the order item attribute.

setName(\StringType $name) : \OrderItemAttribute

Arguments

$name

\StringType

Name of the order item attribute.

Response

\OrderItemAttribute

Same instance for method chaining.

Sets the option ID.

setOptionId(\IdType $optionId) : \OrderItemAttribute

Arguments

$optionId

\IdType

Option ID.

Response

\OrderItemAttribute

Same instance for method chaining.

Set option value ID.

setOptionValueId(\IdType $optionValueId) : \OrderItemAttribute

Arguments

$optionValueId

\IdType

Option value ID.

Response

\OrderItemAttribute

Same instance for method chaining.

Sets the price of the order item attribute.

setPrice(\DecimalType $price) : \OrderItemAttribute

Arguments

$price

\DecimalType

Price of the order item attribute.

Response

\OrderItemAttribute

Same instance for method chaining.

Sets the price type of the order item attribute.

setPriceType(\StringType $priceType) : \OrderItemAttribute

Arguments

$priceType

\StringType

Price type of the order item attribute.

Response

\OrderItemAttribute

Same instance for method chaining.

Sets the value of the order item attribute.

setValue(\StringType $value) : \OrderItemAttribute

Arguments

$value

\StringType

Value of the order item attribute.

Response

\OrderItemAttribute

Same instance for method chaining.

Properties

Name.

name : string
var

Type(s)

string

Value.

value : string
var

Type(s)

string

Price.

price : float
var

Type(s)

float

Price type.

priceType : string
var

Type(s)

string

Option ID.

optionId : \IdType
var

Type(s)

\IdType

Option value ID.

optionValueId : \IdType
var

Type(s)

\IdType