ProductSettingsRepositoryReader

Implements \ProductSettingsRepositoryReaderInterface

Class ProductSettingsRepositoryReader

category

System

package

Product

subpackage

Repositories

Methods

ProductSettingsRepositoryReader Constructor

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

Arguments

$db

\CI_DB_query_builder

Database connection.

$productFactory

\ProductFactoryInterface

Product factory.

$customerStatusProvider

\CustomerStatusProviderInterface

Customer Status Provider.

Returns a product settings instance by the given product id.

getById(\IdType $productId) : \ProductSettingsInterface
Throws
\UnexpectedValueException

if the product was not found by the provided ID.

Arguments

$productId

\IdType

Id of product entity.

Response

\ProductSettingsInterface

Entity with product settings for the expected product id.

Properties