Class ProductRepositoryReader

Class ProductRepositoryReader

ProductRepositoryReader implements ProductRepositoryReaderInterface

Methods summary

public __construct( CI_DB_query_builder $db, ProductFactoryInterface $productFactory, CustomerStatusProviderInterface $customerStatusProvider )

ProductRepositoryReader constructor.

public getById( IdType $productId ) : StoredProductInterface

Returns a product entity instance by the given product id.

public getProductsCount( void ) : integer

Returns the count of all product entries.

protected _createProductByArray( array $product, array $productDescription ) : StoredProduct

Create Product by Array

Properties summary

protected $db : CI_DB_query_builder

DB Connection.


		
protected $productFactory : ProductFactory

Product Factory


		
protected $customerStatusProvider : CustomerStatusProviderInterface

Customer Status Provider