1 <?php
2
3 /* --------------------------------------------------------------
4 StoredOrderTotal.inc.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 * Class StoredOrderTotal
15 *
16 * @category System
17 * @package Order
18 * @subpackage Entities
19 */
20 class StoredOrderTotal extends OrderTotal implements StoredOrderTotalInterface
21 {
22 /**
23 * Order Total ID.
24 *
25 * @var int
26 */
27 protected $orderTotalId;
28
29
30 /**
31 * StoredOrderTotal constructor.
32 *
33 * @param IdType $orderTotalId Order total ID.
34 */
35 public function __construct(IdType $orderTotalId)
36 {
37 $this->orderTotalId = $orderTotalId->asInt();
38 }
39
40
41 /**
42 * Returns the ID of the stored order total.
43 *
44 * @return int Stored order total ID.
45 */
46 public function getOrderTotalId()
47 {
48 return $this->orderTotalId;
49 }
50 }