ProductSettingsRepositoryInterface
in
Interface ProductSettingsRepositoryInterface
Tags
Table of Contents
- getProductSettingsById() : ProductSettingsInterface
- Returns product settings by the given product id.
- store() : ProductSettingsRepositoryInterface|$this
- Saves product settings in the database by the given id.
Methods
getProductSettingsById()
Returns product settings by the given product id.
public
getProductSettingsById(IdType $productId) : ProductSettingsInterface
Parameters
- $productId : IdType
-
Id of product entity.
Return values
ProductSettingsInterface —Entity with product settings for the expected product id.
store()
Saves product settings in the database by the given id.
public
store(IdType $productId, ProductSettingsInterface $settings) : ProductSettingsRepositoryInterface|$this
Parameters
- $productId : IdType
-
Id of product entity.
- $settings : ProductSettingsInterface
-
Settings entity with values to store.
Return values
ProductSettingsRepositoryInterface|$this —Same instance for chained method calls.