1 <?php
2
3 /* --------------------------------------------------------------
4 ProductAttributeRepositoryReaderInterface.inc.php 2016-01-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 ProductAttributeRepositoryReaderInterface
15 *
16 * @category System
17 * @package ProductModule
18 * @subpackage Interface
19 */
20 interface ProductAttributeRepositoryReaderInterface
21 {
22 /**
23 * Returns a product attribute entity by the given product attribute id.
24 *
25 * @param IdType $productAttributeId Id of expected product attribute entity.
26 *
27 * @return StoredProductAttributeInterface Expected product attribute entity.
28 */
29 public function getAttributeById(IdType $productAttributeId);
30
31
32 /**
33 * Returns a collection with all product attribute entities which belongs to the product entity by the given
34 * product id.
35 *
36 * @param IdType $productId Id of product entity which belongs to the expected product attribute entities.
37 *
38 * @return StoredProductAttributeCollection Collection which contains all expected product attribute entities.
39 */
40 public function getAttributesByProductId(IdType $productId);
41 }