Interface ProductAttributeRepositoryInterface
Interface ProductAttributeRepositoryInterface
Direct known implementers
Package: ProductModule\Interface
Category: System
Located at Services/Core/ProductModule/Repositories/Interfaces/ProductAttributeRepositoryInterface.inc.php
Category: System
Located at Services/Core/ProductModule/Repositories/Interfaces/ProductAttributeRepositoryInterface.inc.php
Methods summary
public
addToProduct( IdType $productId, ProductAttributeInterface $productAttribute )
: integer
Adds an product attribute to a product by the given id.
public
store( StoredProductAttributeInterface $productAttribute )
: ProductAttributeRepositoryInterface|ProductAttributeRepositoryInterface
Stores/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
deleteAttributeById( IdType $productAttributeId )
: ProductAttributeRepositoryInterface|ProductAttributeRepositoryInterface
Removes a product attribute entity by the given product attribute id.
public
deleteAttributesByProductId( IdType $productId )
: ProductAttributeRepositoryInterface|ProductAttributeRepositoryInterface
Removes product attributes by the given product id.