Class ProductRepositoryReader
| category |
System |
|---|---|
| package |
Product |
| subpackage |
Repositories |
__construct(\CI_DB_query_builder $db, \ProductFactoryInterface $productFactory, \CustomerStatusProviderInterface $customerStatusProvider)
\CI_DB_query_builder
\ProductFactoryInterface
\CustomerStatusProviderInterface
_createProductByArray(array $product, array $productDescription) : \StoredProduct
Creates and returns a StoredProduct.
| Throws |
|
|---|
arrayProduct query result.
arrayProduct description query result.
\StoredProductStoredProduct object.
getById(\IdType $productId) : \StoredProductInterface
| Throws |
|
|---|
\StoredProductInterfaceProduct entity with the expected product id.
getProductsCount() : integer
integer
db : \CI_DB_query_builder
| var |
|---|
\CI_DB_query_builder
customerStatusProvider : \CustomerStatusProviderInterface