1 <?php
2
3 /* --------------------------------------------------------------
4 CategorySettingsRepositoryInterface.php 2015-11-23
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 CategorySettingsRepositoryInterface
15 *
16 * This interface handles the database operations that concern settings regarding display and visibility mode of category
17 * related data of the database. It provides a layer for more complicated methods that use the writer, reader and
18 * deleter.
19 *
20 * @category System
21 * @package Category
22 * @subpackage Interfaces
23 */
24 interface CategorySettingsRepositoryInterface
25 {
26 /**
27 * Stores the category settings.
28 *
29 * @param IdType $categoryId Category ID.
30 * @param CategorySettingsInterface $settings Category settings.
31 */
32 public function store(IdType $categoryId, CategorySettingsInterface $settings);
33
34
35 /**
36 * Returns the category settings based on the given ID.
37 *
38 * @param IdType $categoryId Category ID.
39 *
40 * @return CategorySettingsInterface
41 */
42 public function getCategorySettingsById(IdType $categoryId);
43 }