1 <?php
2
3 /* --------------------------------------------------------------
4 ProductSettingsRepositoryInterface.php 2015-12-07
5 Gambio GmbH
6 http://www.gambio.de
7 Copyright (c) 2015 Gambio GmbH
8 Released under the GNU General Public License (Version 2)
9 [http://www.gnu.org/licenses/gpl-2.0.html]
10 --------------------------------------------------------------
11 */
12
13 /**
14 * Interface ProductSettingsRepositoryInterface
15 *
16 * @category System
17 * @package Product
18 * @subpackage Interfaces
19 */
20 interface ProductSettingsRepositoryInterface
21 {
22 /**
23 * Saves product settings in the database by the given id.
24 *
25 * @param IdType $productId Id of product entity.
26 * @param ProductSettingsInterface $settings Settings entity with values to store.
27 *
28 * @return ProductSettingsRepositoryInterface|$this Same instance for chained method calls.
29 */
30 public function store(IdType $productId, ProductSettingsInterface $settings);
31
32
33 /**
34 * Returns product settings by the given product id.
35 *
36 * @param IdType $productId Id of product entity.
37 *
38 * @return ProductSettingsInterface Entity with product settings for the expected product id.
39 */
40 public function getProductSettingsById(IdType $productId);
41 }