phpDocumentor

ProductRepositoryReader
in package
implements ProductRepositoryReaderInterface

Class ProductRepositoryReader

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

ProductRepositoryReaderInterface
Interface ProductRepositoryReaderInterface

Table of Contents

$customerStatusProvider  : CustomerStatusProviderInterface
Customer Status Provider
$db  : CI_DB_query_builder
DB Connection.
$productFactory  : ProductFactory
Product Factory
__construct()  : mixed
ProductRepositoryReader constructor.
countImageUsage()  : int
getById()  : StoredProductInterface
Returns a product entity instance by the given product id.
getProductsCount()  : int
Returns the count of all product entries.
_createProductByArray()  : StoredProduct
Create Product by Array

Properties

Methods

countImageUsage()

public countImageUsage(string $productImagePath) : int
Parameters
$productImagePath : string
Tags
inheritDoc
Return values
int

_createProductByArray()

Create Product by Array

protected _createProductByArray(array<string|int, mixed> $product, array<string|int, mixed> $productDescription) : StoredProduct

Creates and returns a StoredProduct.

Parameters
$product : array<string|int, mixed>

Product query result.

$productDescription : array<string|int, mixed>

Product description query result.

Tags
throws
UnexpectedValueException
throws
InvalidArgumentException
Return values
StoredProduct

StoredProduct object.

Search results