ProductRepositoryWriterInterface
in
Interface ProductRepositoryWriterInterface
Tags
Table of Contents
- insert() : int
- Inserts a new product in the database.
- update() : ProductRepositoryWriterInterface|$this
- Updates a product in the database.
Methods
insert()
Inserts a new product in the database.
public
insert(ProductInterface $product) : int
Parameters
- $product : ProductInterface
-
Product entity which holds the values for the database columns.
Return values
int —Id of inserted product.
update()
Updates a product in the database.
public
update(StoredProductInterface $product) : ProductRepositoryWriterInterface|$this
Parameters
- $product : StoredProductInterface
-
Product entity to update.
Return values
ProductRepositoryWriterInterface|$this —Same instance for chained method calls.