Class ProductSettingsRepository

Class ProductSettingsRepository

ProductSettingsRepository implements ProductSettingsRepositoryInterface

Methods summary

public __construct( ProductSettingsRepositoryReaderInterface $reader, ProductSettingsRepositoryWriterInterface $writer )

Initialize the product settings repository.

public store( IdType $productId, ProductSettingsInterface $settings ) : ProductSettingsRepositoryInterface|ProductSettingsRepository

Saves product settings in the database by the given id.

public getProductSettingsById( IdType $productId ) : ProductSettingsInterface

Returns a product settings by the given product id.

Properties summary