Interface ProductAttributeServiceInterface
category |
System |
---|---|
package |
ProductModule |
subpackage |
Interfaces |
addAttribute(\IdType $productId, \ProductAttributeInterface $attribute) : integer
integer
Id of inserted product attribute.
getAttributeById(\IdType $productAttributeId) : \StoredProductAttributeInterface
getAttributesByProductId(\IdType $productId) : \StoredProductAttributeCollection
\StoredProductAttributeCollection
Collection with all attributes that belongs to the product.
removeAttributeById(\IdType $productAttributeId) : \ProductAttributeServiceInterface|$this
removeAttributesByProductId(\IdType $productId) : \ProductAttributeServiceInterface|$this
updateAttribute(\StoredProductAttributeInterface $attribute) : $this|\ProductAttributeServiceInterface