phpDocumentor

ProductAttribute
in package
implements ProductAttributeInterface

Class ProductAttribute

Tags
category

System

subpackage

Entities

Interfaces, Classes and Traits

ProductAttributeInterface
Interface ProductAttributeInterface

Table of Contents

$attributeModel  : string
$optionId  : int
$optionValueId  : int
$price  : float
$priceType  : string
$sortOrder  : int
$stock  : float
$weight  : float
$weightType  : string
__construct()  : mixed
Initialize the product attribute.
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()  : ProductAttribute|$this
Sets the attribute model of the product attribute.
setOptionId()  : ProductAttribute|$this
Sets the option id of the product attribute.
setOptionValueId()  : ProductAttribute|$this
Sets the option value id.
setPrice()  : ProductAttribute|$this
Sets the price of the product attribute.
setPriceType()  : ProductAttribute|$this
Sets the price type of the product attribute.
setSortOrder()  : ProductAttribute|$this
Sets the sort order of the product attribute.
setStock()  : ProductAttribute|$this
Sets the stock of the product attribute.
setWeight()  : ProductAttribute|$this
Sets the weight of the product attribute.
setWeightType()  : ProductAttribute|$this
Sets the weight type of the product attribute.

Properties

Methods

__construct()

Initialize the product attribute.

public __construct(IdType $optionId, IdType $valueId) : mixed
Parameters
$optionId : IdType

Option id of product attribute.

$valueId : IdType

Option value id of product attribute.

Return values
mixed

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.

Search results