ProductAttributeRepositoryWriterInterface
in
Interface ProductAttributeRepositoryWriterInterface
Tags
Table of Contents
- insertIntoProduct() : int
- Adds a product attribute entity to a product by the given product id.
- update() : ProductAttributeRepositoryWriterInterface|$this
- Updates a product attribute entity.
Methods
insertIntoProduct()
Adds a product attribute entity to a product by the given product id.
public
insertIntoProduct(IdType $productId, ProductAttributeInterface $productAttribute) : int
Parameters
- $productId : IdType
-
Id of product entity which should belongs to the added attributes.
- $productAttribute : ProductAttributeInterface
-
Product attribute entity to add to the product.
Return values
int —Id of the stored product attribute.
update()
Updates a product attribute entity.
public
update(StoredProductAttributeInterface $productAttribute) : ProductAttributeRepositoryWriterInterface|$this
Parameters
- $productAttribute : StoredProductAttributeInterface
-
Product attribute entity to update.
Return values
ProductAttributeRepositoryWriterInterface|$this —Same instance for chained method calls.