1 <?php
2
3 /* --------------------------------------------------------------
4 OrderItemRepositoryReaderInterface.inc.php 2015-10-28 gm
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 OrderItemRepositoryReaderInterface
15 *
16 * @category System
17 * @package Order
18 * @subpackage Interfaces
19 */
20 interface OrderItemRepositoryReaderInterface
21 {
22 /**
23 * Returns an stored order item by the given order item ID.
24 *
25 * @param IdType $orderItemId ID of order item.
26 *
27 * @return StoredOrderItemInterface Fetched order item.
28 */
29 public function getItemById(IdType $orderItemId);
30
31
32 /**
33 * Returns a collection of stored order items by the given order ID.
34 *
35 * @param IdType $orderId ID of the order.
36 *
37 * @return StoredOrderItemCollection Fetched order item collection.
38 */
39 public function getItemsByOrderId(IdType $orderId);
40 }