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