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 |
|
---|
array
Product query result.
array
Product description query result.
\StoredProduct
StoredProduct object.
getById(\IdType $productId) : \StoredProductInterface
Throws |
|
---|
\StoredProductInterface
Product entity with the expected product id.
getProductsCount() : integer
integer
db : \CI_DB_query_builder
var |
---|
\CI_DB_query_builder
customerStatusProvider : \CustomerStatusProviderInterface