1 <?php
2
3 /* --------------------------------------------------------------
4 OrderItemPropertyRepositoryWriterInterface.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 OrderItemPropertyRepositoryWriterInterface
15 *
16 * @category System
17 * @package Order
18 * @subpackage Interfaces
19 */
20 interface OrderItemPropertyRepositoryWriterInterface
21 {
22 /**
23 * Adds a new property to the order item.
24 *
25 * @param IdType $orderItemId ID of the order item.
26 * @param OrderItemProperty $orderItemProperty Property to add.
27 *
28 * @return int ID of stored order item property.
29 */
30 public function insertIntoOrderItem(IdType $orderItemId, OrderItemProperty $orderItemProperty);
31
32
33 /**
34 * Updates the stored order item property.
35 *
36 * @param StoredOrderItemProperty $orderItemProperty Order item property.
37 *
38 * @return OrderItemPropertyRepositoryWriterInterface Same instance for method chaining.
39 */
40 public function update(StoredOrderItemProperty $orderItemProperty);
41 }