ProductRepositoryReaderInterface
in
Interface ProductRepositoryReaderInterface
Tags
Table of Contents
- countImageUsage() : int
- getById() : StoredProductInterface
- Returns a product entity instance by the given product id.
- getProductsCount() : int
- Returns the count of all product entries.
Methods
countImageUsage()
public
countImageUsage(string $productImagePath) : int
Parameters
- $productImagePath : string
Return values
int —getById()
Returns a product entity instance by the given product id.
public
getById(IdType $productId) : StoredProductInterface
Parameters
- $productId : IdType
-
Id of product entity.
Return values
StoredProductInterface —Product entity with the expected product id.
getProductsCount()
Returns the count of all product entries.
public
getProductsCount() : int