Interface ProductAttributeRepositoryInterface
category |
System |
---|---|
package |
ProductModule |
subpackage |
Interface |
addToProduct(\IdType $productId, \ProductAttributeInterface $productAttribute) : integer
integer
Id of added product attribute entity.
deleteAttributeById(\IdType $productAttributeId) : \ProductAttributeRepositoryInterface|$this
\ProductAttributeRepositoryInterface|$this
Same instance for chained method calls.
deleteAttributesByProductId(\IdType $productId) : \ProductAttributeRepositoryInterface|$this
\ProductAttributeRepositoryInterface|$this
Same instance for chained method calls.
getAttributeById(\IdType $productAttributeId) : \StoredProductAttributeInterface
getAttributesByProductId(\IdType $productId) : \StoredProductAttributeCollection
\StoredProductAttributeCollection
Collection with all attributes that belongs to the product.
store(\StoredProductAttributeInterface $productAttribute) : \ProductAttributeRepositoryInterface|$this
\ProductAttributeRepositoryInterface|$this
Same instance for chained method calls.