ProductAttributeRepositoryWriterInterface

Extends

Interface ProductAttributeRepositoryWriterInterface

category

System

package

ProductModule

subpackage

Interface

Methods

Adds a product attribute entity to a product by the given product id.

insertIntoProduct(\IdType $productId, \ProductAttributeInterface $productAttribute) : integer

Arguments

$productId

\IdType

Id of product entity which should belongs to the added attributes.

$productAttribute

\ProductAttributeInterface

Product attribute entity to add to the product.

Response

integer

Id of the stored product attribute.

Updates a product attribute entity.

update(\StoredProductAttributeInterface $productAttribute) : \ProductAttributeRepositoryWriterInterface|$this

Arguments

$productAttribute

\StoredProductAttributeInterface

Product attribute entity to update.

Response

\ProductAttributeRepositoryWriterInterface|$this

Same instance for chained method calls.