1 <?php
2
3 /* --------------------------------------------------------------
4 OrderItemAttributeRepositoryReaderInterface.inc.php 2015-11-16
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 OrderItemAttributeRepositoryReaderInterface
15 *
16 * @category System
17 * @package Order
18 * @subpackage Interfaces
19 */
20 interface OrderItemAttributeRepositoryReaderInterface
21 {
22 /**
23 * Returns an order item attribute by the given ID.
24 *
25 * @param IdType $orderItemAttributeId ID of order item attribute.
26 *
27 * @throws \UnexpectedValueException If no order item attribute recors matches the provided $orderItemAttributeId
28 * @return StoredOrderItemAttributeInterface Fetched order item attribute.
29 */
30 public function getAttributeById(IdType $orderItemAttributeId);
31
32
33 /**
34 * Returns a collection of order item attributes by the given order item ID.
35 *
36 * @param \IdType $orderItemId ID of the order item.
37 *
38 * @return StoredOrderItemAttributeCollection Fetched order item attribute collection.
39 */
40 public function getAttributesByOrderItemId(IdType $orderItemId);
41 }