Class ProductAttributeService
| category |
System |
|---|---|
| package |
ProductModule |
| subpackage |
Interfaces |
__construct(\ProductAttributeRepositoryInterface $productAttributeRepo)
addAttribute(\IdType $productId, \ProductAttributeInterface $attribute) : integer
integerId of inserted product attribute.
getAttributeById(\IdType $productAttributeId) : \StoredProductAttributeInterface
getAttributesByProductId(\IdType $productId) : \StoredProductAttributeCollection
\StoredProductAttributeCollectionCollection with all attributes that belongs to the product.
removeAttributeById(\IdType $productAttributeId) : \ProductAttributeService|$this
removeAttributesByProductId(\IdType $productId) : \ProductAttributeService|$this
updateAttribute(\StoredProductAttributeInterface $attribute) : $this|\ProductAttributeService
productAttributeRepo : \ProductAttributeRepositoryInterface