Class OrderItemAttribute

Class OrderItemAttribute

OrderItemAttribute implements OrderItemAttributeInterface

Direct known subclasses

StoredOrderItemAttribute

Methods summary

public __construct( StringType $name, StringType $value )

OrderItemAttribute constructor.

public getName( void ) : string

Returns the name of the order item attribute.

public getValue( void ) : string

Returns the value of the order item attribute.

public getPrice( void ) : float

Returns the price of the order item attribute.

public getPriceType( void ) : string

Returns the price type of the order item attribute.

public getOptionId( void ) : IdType

Returns the option ID.

public getOptionValueId( void ) : IdType

Returns the option value ID.

public setName( StringType $name ) : OrderItemAttribute

Sets the name of the order item attribute.

public setValue( StringType $value ) : OrderItemAttribute

Sets the value of the order item attribute.

public setPrice( DecimalType $price ) : OrderItemAttribute

Sets the price of the order item attribute.

public setPriceType( StringType $priceType ) : OrderItemAttribute

Sets the price type of the order item attribute.

public setOptionId( IdType $optionId ) : OrderItemAttribute

Sets the option ID.

public setOptionValueId( IdType $optionValueId ) : OrderItemAttribute

Set option value ID.

Properties summary

protected $name : string

Name.

''
protected $value : string

Value.

''
protected $price : float

Price.

0.0
protected $priceType : string

Price type.

''
protected $optionId : IdType

Option ID.

0
protected $optionValueId : IdType

Option value ID.

0