Interface ProductAttributeServiceInterface
Interface ProductAttributeServiceInterface
Direct known implementers
Package: ProductModule\Interfaces
Category: System
Located at Services/Core/ProductModule/Interfaces/ProductAttributeServiceInterface.inc.php
Category: System
Located at Services/Core/ProductModule/Interfaces/ProductAttributeServiceInterface.inc.php
Methods summary
public
addAttribute( IdType $productId, ProductAttributeInterface $attribute )
: integer
Adds an product attribute to a product by the given id.
public
updateAttribute( StoredProductAttributeInterface $attribute )
:
Updates the passed product attribute entity.
public
getAttributeById( IdType $productAttributeId )
: StoredProductAttributeInterface
Returns a stored product attribute entity by the given product attribute id.
public
getAttributesByProductId( IdType $productId )
: StoredProductAttributeCollection
Returns a collection with all attribute entities that belongs to a product entity by the given product id.
public
removeAttributeById( IdType $productAttributeId )
: ProductAttributeServiceInterface|ProductAttributeServiceInterface
Removes a product attribute entity by the given product attribute id.
public
removeAttributesByProductId( IdType $productId )
: ProductAttributeServiceInterface|ProductAttributeServiceInterface
Removes product attributes by the given product id.