ProductRepositoryReaderInterface

Extends

Interface ProductRepositoryReaderInterface

category

System

package

Product

subpackage

Interfaces

Methods

Returns a product entity instance by the given product id.

getById(\IdType $productId) : \StoredProductInterface

Arguments

$productId

\IdType

Id of product entity.

Response

\StoredProductInterface

Product entity with the expected product id.

Returns the count of all product entries.

getProductsCount() : integer

Response

integer