1 <?php
2
3 /* --------------------------------------------------------------
4 OrderItemAttributeFactoryInterface.inc.php 2015-11-05 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 OrderItemAttributeFactoryInterface
15 *
16 * @category System
17 * @package Order
18 * @subpackge Interfaces
19 */
20 interface OrderItemAttributeFactoryInterface
21 {
22 /**
23 * Creates an order item attribute instance.
24 *
25 * @param StringType $name Name of the attribute.
26 * @param StringType $value Value of the attribute.
27 *
28 * @return OrderItemAttributeInterface New instance.
29 */
30 public function createOrderItemAttribute(StringType $name, StringType $value);
31
32
33 /**
34 * Creates a stored order item attribute instance.
35 *
36 * @param IdType $orderItemAttributeId Database ID of the stored attribute instance.
37 *
38 * @return StoredOrderItemAttributeInterface New instance.
39 */
40 public function createStoredOrderItemAttribute(IdType $orderItemAttributeId);
41 }