Class ProductAttribute

Class ProductAttribute

ProductAttribute implements ProductAttributeInterface

Direct known subclasses

StoredProductAttribute

Methods summary

public __construct( IdType $optionId, IdType $valueId )

Initialize the product attribute.

public getOptionId( void ) : integer

Returns the option id of the product attribute.

public setOptionId( IdType $optionId ) : ProductAttribute|ProductAttribute

Sets the option id of the product attribute.

public getOptionValueId( void ) : integer

Returns option value id of the product attribute.

public setOptionValueId( IdType $optionValueId ) : ProductAttribute|ProductAttribute

Sets the option value id.

public getPrice( void ) : float

Returns the price of the product attribute.

public setPrice( DecimalType $price ) : ProductAttribute|ProductAttribute

Sets the price of the product attribute.

public getPriceType( void ) : string

Returns the price type of the product attribute.

public setPriceType( StringType $priceType ) : ProductAttribute|ProductAttribute

Sets the price type of the product attribute.

public getWeight( void ) : float

Returns the weight of the product attribute.

public setWeight( DecimalType $weight ) : ProductAttribute|ProductAttribute

Sets the weight of the product attribute.

public getWeightType( void ) : string

Returns the weight type of the product attribute.

public setWeightType( StringType $weightType ) : ProductAttribute|ProductAttribute

Sets the weight type of the product attribute.

public getAttributeModel( void ) : string

Returns the attribute model of the product attribute.

public setAttributeModel( StringType $attributeModel ) : ProductAttribute|ProductAttribute

Sets the attribute model of the product attribute.

public getAttributeEan( void ) : string

Returns the ean of the product attribute.

public setAttributeEan( StringType $attributeEan ) : ProductAttribute|ProductAttribute

Sets the ean of the product attribute.

public getStock( void ) : float

Returns the stock of the product attribute.

public setStock( DecimalType $stock ) : ProductAttribute|ProductAttribute

Sets the stock of the product attribute.

public getSortOrder( void ) : integer

Returns the sort order of the product attribute.

public setSortOrder( IntType $sortOrder ) : ProductAttribute|ProductAttribute

Sets the sort order of the product attribute.

public getVpeId( void ) : integer

Returns the vpe id of the product attribute.

public setVpeId( IdType $vpeId ) : ProductAttribute|ProductAttribute

Sets the vpe id of the product attribute.

public getVpeValue( void ) : float

Returns the product vpe value of the product attribute.

public setVpeValue( DecimalType $vpeValue ) : ProductAttribute|ProductAttribute

Sets the vpe value of the product attribute.

Properties summary

protected $optionId : integer
0
protected $optionValueId : integer
0
protected $price : float
0.0
protected $priceType : string
''
protected $weight : float
0.0
protected $weightType : string
''
protected $attributeModel : string
''
protected $attributeEan : string
''
protected $stock : float
0.0
protected $sortOrder : integer
0
protected $vpeId : integer
0
protected $vpeValue : float
0.0