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