1 <?php
2
3 /* --------------------------------------------------------------
4 OrderItemAttributeInterface.php 2015-10-27 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 OrderItemAttributeInterface
15 *
16 * @category System
17 * @package Order
18 * @subpackage Interfaces
19 */
20 interface OrderItemAttributeInterface
21 {
22 /**
23 * Returns the name of the order item attribute.
24 *
25 * @return string Name of the order item attribute.
26 */
27 public function getName();
28
29
30 /**
31 * Returns the value of the order item attribute.
32 *
33 * @return string Value of the order item attribute.
34 */
35 public function getValue();
36
37
38 /**
39 * Returns the price of the order item attribute.
40 *
41 * @return float Price of the order item attribute.
42 */
43 public function getPrice();
44
45
46 /**
47 * Returns the price type of the order item attribute.
48 *
49 * @return string Price type of the order item attribute.
50 */
51 public function getPriceType();
52
53
54 /**
55 * Sets the name of the order item attribute.
56 *
57 * @param StringType $name Name of the order item attribute.
58 *
59 * @return OrderItemAttributeInterface Same instance for method chaining.
60 */
61 public function setName(StringType $name);
62
63
64 /**
65 * Sets the value of the order item attribute.
66 *
67 * @param StringType $value Value of the order item attribute.
68 *
69 * @return OrderItemAttributeInterface Same instance for method chaining.
70 */
71 public function setValue(StringType $value);
72
73
74 /**
75 * Sets the price of the order item attribute.
76 *
77 * @param DecimalType $price Price of the order item attribute.
78 *
79 * @return OrderItemAttributeInterface Same instance for method chaining.
80 */
81 public function setPrice(DecimalType $price);
82
83
84 /**
85 * Sets the price type of the order item attribute.
86 *
87 * @param StringType $priceType Price type of the order item attribute.
88 *
89 * @return OrderItemAttributeInterface Same instance for method chaining.
90 */
91 public function setPriceType(StringType $priceType);
92 }