Class ProductRepository
category |
System |
---|---|
package |
Product |
subpackage |
Repositories |
__construct(\ProductRepositoryReaderInterface $reader, \ProductRepositoryWriterInterface $writer, \ProductRepositoryDeleterInterface $deleter, \ProductSettingsRepositoryInterface $settingsRepo, \AddonValueServiceInterface $addonValueService, \ProductImageContainerRepositoryInterface $imageContainerRepo, \UrlRewriteStorage $urlRewriteStorage)
\ProductSettingsRepositoryInterface
Repository instance to read/write/delete product settings.
add(\ProductInterface $product) : integer
Throws |
|
---|
integer
Id of inserted product.
deleteProductById(\IdType $productId) : \ProductRepositoryInterface|$this
getProductById(\IdType $productId) : \StoredProductInterface
getProductsCount() : integer
integer
store(\StoredProductInterface $product) : \ProductRepositoryInterface|$this
Throws |
|
---|
\ProductRepositoryInterface|$this
Same instance for chained method calls.
settingsRepo : \ProductSettingsRepositoryInterface
addonValueService : \AddonValueServiceInterface
imageContainerRepo : \ProductImageContainerRepositoryInterface