ProductSettingsRepositoryWriter

Implements \ProductSettingsRepositoryWriterInterface

Class ProductSettingsRepositoryWriter

category

System

package

Product

subpackage

Repositories

Methods

ProductSettingsRepositoryWriter constructor.

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

Arguments

$db

\CI_DB_query_builder

Database connection.

$customerStatusProvider

\CustomerStatusProviderInterface

Customer Status Provider

Updates product settings by the given product id.

update(\IdType $productId, \ProductSettingsInterface $settings) : \ProductSettingsRepositoryInterface|$this

Arguments

$productId

\IdType

ID of product entity.

$settings

\ProductSettingsInterface

Settings entity with values to update.

Response

\ProductSettingsRepositoryInterface|$this

Same instance for chained method calls.

Properties

Database connection.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

Table name.

table : string
var

Type(s)

string

Customer Status Provider

customerStatusProvider : \CustomerStatusProviderInterface