ProductSettingsRepositoryInterface

Extends

Interface ProductSettingsRepositoryInterface

category

System

package

Product

subpackage

Interfaces

Methods

Returns product settings by the given product id.

getProductSettingsById(\IdType $productId) : \ProductSettingsInterface

Arguments

$productId

\IdType

Id of product entity.

Response

\ProductSettingsInterface

Entity with product settings for the expected product id.

Saves product settings in the database by the given id.

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

Arguments

$productId

\IdType

Id of product entity.

$settings

\ProductSettingsInterface

Settings entity with values to store.

Response

\ProductSettingsRepositoryInterface|$this

Same instance for chained method calls.