ProductAttributeFactory

Implements \ProductAttributeFactoryInterface

Class ProductAttributeFactory

category

System

package

ProductModule

subpackage

Factories

Methods

Creates a new product attribute instance.

createProductAttribute(\IdType $optionId, \IdType $valueId) : \ProductAttribute

Arguments

$optionId

\IdType

Option id of the created product attribute instance.

$valueId

\IdType

Value id of the created product attribute instance.

Response

\ProductAttribute

A new product attribute instance.

Creates a new stored product attribute instance.

createStoredProductAttribute(\IdType $productAttributeId) : \StoredProductAttribute

Arguments

$productAttributeId

\IdType

Id of the created stored product attribute instance.

Response

\StoredProductAttribute

A new stored product attribute instance.