Class ProductAttributeRepository
category |
System |
---|---|
package |
ProductModule |
subpackage |
Repositories |
__construct(\ProductAttributeRepositoryReaderInterface $reader, \ProductAttributeRepositoryWriterInterface $writer, \ProductAttributeRepositoryDeleterInterface $deleter)
addToProduct(\IdType $productId, \ProductAttributeInterface $productAttribute) : integer
integer
Id of added product attribute entity.
deleteAttributeById(\IdType $productAttributeId) : \ProductAttributeRepository|$this
deleteAttributesByProductId(\IdType $productId) : \ProductAttributeRepository|$this
getAttributeById(\IdType $productAttributeId) : \StoredProductAttributeInterface
getAttributesByProductId(\IdType $productId) : \StoredProductAttributeCollection
\StoredProductAttributeCollection
Collection with all attributes that belongs to the product.
store(\StoredProductAttributeInterface $productAttribute) : \ProductAttributeRepository|$this
reader : \ProductAttributeRepositoryReaderInterface
writer : \ProductAttributeRepositoryWriterInterface
deleter : \ProductAttributeRepositoryDeleterInterface