Interface ProductRepositoryInterface

Interface ProductRepositoryInterface

Direct known implementers

ProductRepository

Methods summary

public add( ProductInterface $product ) : integer

Adds a new product in the database.

public store( StoredProductInterface $product ) : ProductRepositoryInterface|ProductRepositoryInterface

Updates an existing product in the database.

public getProductById( IdType $productId ) : StoredProductInterface

Returns a stored product by the given id.

public deleteProductById( IdType $productId ) : ProductRepositoryInterface|ProductRepositoryInterface

Removes a product from the database by the given id.

public getProductsCount( void ) : integer

Returns the count of all product entries.