ProductAttributeFactoryInterface
in
Interface ProductAttributeFactoryInterface
Tags
Table of Contents
- createProductAttribute() : ProductAttributeInterface
- Creates a new product attribute instance.
- createStoredProductAttribute() : StoredProductAttributeInterface
- Creates a new stored product attribute instance.
Methods
createProductAttribute()
Creates a new product attribute instance.
public
createProductAttribute(IdType $optionId, IdType $valueId) : ProductAttributeInterface
Parameters
- $optionId : IdType
-
Option id of the created product attribute instance.
- $valueId : IdType
-
Value id of the created product attribute instance.
Return values
ProductAttributeInterface —A new product attribute instance.
createStoredProductAttribute()
Creates a new stored product attribute instance.
public
createStoredProductAttribute(IdType $productAttributeId) : StoredProductAttributeInterface
Parameters
- $productAttributeId : IdType
-
Id of the created stored product attribute instance.
Return values
StoredProductAttributeInterface —A new stored product attribute instance.