StoredProductAttributeInterface
extends
ProductAttributeInterface
in
Interface StoredProductAttributeInterface
Tags
Table of Contents
- getAttributeId() : int
- Returns the attribute id.
- getAttributeModel() : string
- Returns the attribute model of the product attribute.
- getOptionId() : int
- Returns the option id of the product attribute.
- getOptionValueId() : int
- Returns option value id of the product attribute.
- getPrice() : float
- Returns the price of the product attribute.
- getPriceType() : string
- Returns the price type of the product attribute.
- getSortOrder() : int
- Returns the sort order of the product attribute.
- getStock() : float
- Returns the stock of the product attribute.
- getWeight() : float
- Returns the weight of the product attribute.
- getWeightType() : string
- Returns the weight type of the product attribute.
- setAttributeModel() : ProductAttributeInterface|$this
- Sets the attribute model of the product attribute.
- setOptionId() : ProductAttributeInterface|$this
- Sets the option id of the product attribute.
- setOptionValueId() : ProductAttributeInterface|$this
- Sets the option value id.
- setPrice() : ProductAttributeInterface|$this
- Sets the price of the product attribute.
- setPriceType() : ProductAttributeInterface|$this
- Sets the price type of the product attribute.
- setSortOrder() : ProductAttributeInterface|$this
- Sets the sort order of the product attribute.
- setStock() : ProductAttributeInterface|$this
- Sets the stock of the product attribute.
- setWeight() : ProductAttributeInterface|$this
- Sets the weight of the product attribute.
- setWeightType() : ProductAttributeInterface|$this
- Sets the weight type of the product attribute.
Methods
getAttributeId()
Returns the attribute id.
public
getAttributeId() : int
Return values
int —Id of product attribute.
getAttributeModel()
Returns the attribute model of the product attribute.
public
getAttributeModel() : string
Return values
string —Model of product attribute.
getOptionId()
Returns the option id of the product attribute.
public
getOptionId() : int
Return values
int —Option id of product attribute.
getOptionValueId()
Returns option value id of the product attribute.
public
getOptionValueId() : int
Return values
int —Option value id of product attribute.
getPrice()
Returns the price of the product attribute.
public
getPrice() : float
Return values
float —Price of product attribute.
getPriceType()
Returns the price type of the product attribute.
public
getPriceType() : string
Return values
string —Price type of product attribute.
getSortOrder()
Returns the sort order of the product attribute.
public
getSortOrder() : int
Return values
int —Sort order of product attribute.
getStock()
Returns the stock of the product attribute.
public
getStock() : float
Return values
float —Stock of product attribute.
getWeight()
Returns the weight of the product attribute.
public
getWeight() : float
Return values
float —Weight of product attribute.
getWeightType()
Returns the weight type of the product attribute.
public
getWeightType() : string
Return values
string —Weight type of product attribute.
setAttributeModel()
Sets the attribute model of the product attribute.
public
setAttributeModel(StringType $attributeModel) : ProductAttributeInterface|$this
Parameters
- $attributeModel : StringType
-
New attribute model.
Return values
ProductAttributeInterface|$this —Same instance for chained method calls.
setOptionId()
Sets the option id of the product attribute.
public
setOptionId(IdType $optionId) : ProductAttributeInterface|$this
Parameters
- $optionId : IdType
-
Option id of product attribute.
Return values
ProductAttributeInterface|$this —Same instance for chained method calls.
setOptionValueId()
Sets the option value id.
public
setOptionValueId(IdType $optionValueId) : ProductAttributeInterface|$this
Parameters
- $optionValueId : IdType
-
Option value id of product attribute.
Return values
ProductAttributeInterface|$this —Same instance for chained method calls.
setPrice()
Sets the price of the product attribute.
public
setPrice(DecimalType $price) : ProductAttributeInterface|$this
Parameters
- $price : DecimalType
-
New price of product attribute.
Return values
ProductAttributeInterface|$this —Same instance for chained method calls.
setPriceType()
Sets the price type of the product attribute.
public
setPriceType(StringType $priceType) : ProductAttributeInterface|$this
Parameters
- $priceType : StringType
-
New price type.
Return values
ProductAttributeInterface|$this —Same instance for chained method calls.
setSortOrder()
Sets the sort order of the product attribute.
public
setSortOrder(IntType $sortOrder) : ProductAttributeInterface|$this
Parameters
- $sortOrder : IntType
-
New sort order position.
Return values
ProductAttributeInterface|$this —Same instance for chained method calls.
setStock()
Sets the stock of the product attribute.
public
setStock(DecimalType $stock) : ProductAttributeInterface|$this
Parameters
- $stock : DecimalType
-
New stock
Return values
ProductAttributeInterface|$this —Same instance for chained method calls.
setWeight()
Sets the weight of the product attribute.
public
setWeight(DecimalType $weight) : ProductAttributeInterface|$this
Parameters
- $weight : DecimalType
-
New weight.
Return values
ProductAttributeInterface|$this —Same instance for chained method calls.
setWeightType()
Sets the weight type of the product attribute.
public
setWeightType(StringType $weightType) : ProductAttributeInterface|$this
Parameters
- $weightType : StringType
-
New weight type.
Return values
ProductAttributeInterface|$this —Same instance for chained method calls.