1 <?php
2
3 /* --------------------------------------------------------------
4 OrderTotalInterface.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 OrderTotalInterface
15 *
16 * @category System
17 * @package Order
18 * @subpackage Interfaces
19 */
20 interface OrderTotalInterface
21 {
22 /**
23 * Returns the title of the order total.
24 *
25 * @return string Title of the order total.
26 */
27 public function getTitle();
28
29
30 /**
31 * Returns the value of the order total.
32 *
33 * @return float Value of the order total.
34 */
35 public function getValue();
36
37
38 /**
39 * Returns the value text of the order total.
40 *
41 * @return string Value text of the order total.
42 */
43 public function getValueText();
44
45
46 /**
47 * Returns the class of the order total.
48 *
49 * @return string Class of the order total.
50 */
51 public function getClass();
52
53
54 /**
55 * Returns the sort order of the order total.
56 *
57 * @return int Sort order of the order total.
58 */
59 public function getSortOrder();
60
61
62 /**
63 * Sets title of the order total.
64 *
65 * @param StringType $title Title of the order total.
66 *
67 * @return OrderTotalInterface Same instance for method chaining.
68 */
69 public function setTitle(StringType $title);
70
71
72 /**
73 * Sets value of the order total.
74 *
75 * @param DecimalType $value Value of the order total.
76 *
77 * @return OrderTotalInterface Same instance for method chaining.
78 */
79 public function setValue(DecimalType $value);
80
81
82 /**
83 * Sets value text of the order total.
84 *
85 * @param StringType $valueText Value text of the order total.
86 *
87 * @return OrderTotalInterface Same instance for method chaining.
88 */
89 public function setValueText(StringType $valueText);
90
91
92 /**
93 * Sets class of the order total.
94 *
95 * @param StringType $class Class of the order total.
96 *
97 * @return OrderTotalInterface Same instance for method chaining.
98 */
99 public function setClass(StringType $class);
100
101
102 /**
103 * Sets sort order of the order total.
104 *
105 * @param IntType $sortOrder Sort order of the order total.
106 *
107 * @return OrderTotalInterface Same instance for method chaining.
108 */
109 public function setSortOrder(IntType $sortOrder);
110 }