ProductAttributeFactory
in package
implements
ProductAttributeFactoryInterface
Class ProductAttributeFactory
Tags
Interfaces, Classes and Traits
- ProductAttributeFactoryInterface
- Interface ProductAttributeFactoryInterface
Table of Contents
- createProductAttribute() : ProductAttribute
- Creates a new product attribute instance.
- createStoredProductAttribute() : StoredProductAttribute
- Creates a new stored product attribute instance.
Methods
createProductAttribute()
Creates a new product attribute instance.
public
createProductAttribute(IdType $optionId, IdType $valueId) : ProductAttribute
Parameters
- $optionId : IdType
-
Option id of the created product attribute instance.
- $valueId : IdType
-
Value id of the created product attribute instance.
Return values
ProductAttribute —A new product attribute instance.
createStoredProductAttribute()
Creates a new stored product attribute instance.
public
createStoredProductAttribute(IdType $productAttributeId) : StoredProductAttribute
Parameters
- $productAttributeId : IdType
-
Id of the created stored product attribute instance.
Return values
StoredProductAttribute —A new stored product attribute instance.