ProductRepositoryWriterInterface

Extends

Interface ProductRepositoryWriterInterface

category

System

package

Product

subpackage

Interfaces

Methods

Inserts a new product in the database.

insert(\ProductInterface $product) : integer

Arguments

$product

\ProductInterface

Product entity which holds the values for the database columns.

Response

integer

Id of inserted product.

Updates a product in the database.

update(\StoredProductInterface $product) : \ProductRepositoryWriterInterface|$this

Arguments

$product

\StoredProductInterface

Product entity to update.

Response

\ProductRepositoryWriterInterface|$this

Same instance for chained method calls.