1 <?php
2
3 /* --------------------------------------------------------------
4 StoredProductAttribute.inc.php 2016-01-07
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 StoredProductAttribute
15 *
16 * @category System
17 * @package ProductModule
18 * @subpackage Entities
19 */
20 class StoredProductAttribute extends ProductAttribute implements StoredProductAttributeInterface
21 {
22 /**
23 * @var int
24 */
25 protected $attributeId;
26
27
28 /**
29 * Initialize the stored product attribute.
30 *
31 * @param IdType $attributeId Id of product attribute.
32 */
33 public function __construct(IdType $attributeId)
34 {
35 $this->attributeId = $attributeId->asInt();
36 }
37
38
39 /**
40 * Returns the attribute id.
41 *
42 * @return int Id of product attribute.
43 */
44 public function getAttributeId()
45 {
46 return $this->attributeId;
47 }
48 }