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