1 <?php
2
3 /* --------------------------------------------------------------
4 OrderTotalFactoryInterface.inc.php 2015-11-03 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 OrderTotalFactoryInterface
15 *
16 * @category System
17 * @package Order
18 * @subpackage Interfaces
19 */
20 interface OrderTotalFactoryInterface
21 {
22 /**
23 * Creates an OrderTotal object.
24 *
25 * @param StringType $title The title of the order total item.
26 * @param DecimalType $value The decimal value of the order total item.
27 * @param StringType $valueText (optional) The formatted value as text with currency and so on.
28 * @param StringType $class (optional) The used order total class (e.g. ot_subtotal).
29 * @param IntType $sortOrder (optional) The sort order of the order total item.
30 *
31 * @return OrderTotalInterface New OrderTotal instance.
32 */
33 public function createOrderTotal(StringType $title,
34 DecimalType $value,
35 StringType $valueText = null,
36 StringType $class = null,
37 IntType $sortOrder = null);
38
39
40 /**
41 * Creates a StoredOrderTotal object.
42 *
43 * @param IdType $orderTotalId ID of the order total item.
44 *
45 * @return StoredOrderTotalInterface New StoredOrderTotal instance.
46 */
47 public function createStoredOrderTotal(IdType $orderTotalId);
48 }