1 <?php
2
3 /* --------------------------------------------------------------
4 OrderItemRepositoryReaderInterface.inc.php 2015-11-13
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 OrderItemPropertyRepositoryReaderInterface
15 *
16 * @category System
17 * @package Order
18 * @subpackage Interfaces
19 */
20 interface OrderItemPropertyRepositoryReaderInterface
21 {
22 /**
23 * Returns an order item property by the given ID.
24 *
25 * @param IdType $orderItemPropertyId ID of order item property.
26 *
27 * @return StoredOrderItemProperty Fetched order item property.
28 */
29 public function getPropertyById(IdType $orderItemPropertyId);
30
31
32 /**
33 * Returns a collection of order item properties by the given order item ID.
34 *
35 * @param IdType $orderItemId ID of the order item.
36 *
37 * @return StoredOrderItemAttributeCollection Fetched order item attribute collection.
38 */
39 public function getPropertiesByOrderItemId(IdType $orderItemId);
40 }