1 | <?php |
||
9 | class Attribute |
||
10 | { |
||
11 | private $serializedKey; |
||
12 | |||
13 | private $type; |
||
14 | |||
15 | private $isIdentifier; |
||
16 | |||
17 | private $attributeName; |
||
18 | |||
19 | /** |
||
20 | * __construct |
||
21 | * |
||
22 | * @param string $serializedKey |
||
23 | * @param string $attributeName |
||
24 | * @param string $type |
||
25 | * @param boolean $isIdentifier |
||
26 | * @access public |
||
27 | */ |
||
28 | public function __construct($serializedKey, $attributeName = null, $type = 'string', $isIdentifier = false) |
||
39 | |||
40 | /** |
||
41 | * Getter for serializedKey |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getSerializedKey() |
||
49 | |||
50 | /** |
||
51 | * Setter for serializedKey |
||
52 | * |
||
53 | * @param string $serializedKey |
||
54 | * @return Attribute |
||
55 | */ |
||
56 | public function setSerializedKey($serializedKey) |
||
62 | |||
63 | /** |
||
64 | * Getter for type |
||
65 | * |
||
66 | * return string |
||
67 | */ |
||
68 | public function getType() |
||
72 | |||
73 | /** |
||
74 | * Setter for type |
||
75 | * |
||
76 | * @param string $type |
||
77 | * @return Attribute |
||
78 | */ |
||
79 | public function setType($type) |
||
84 | |||
85 | /** |
||
86 | * Getter for isIdentifier |
||
87 | * |
||
88 | * return boolean |
||
89 | */ |
||
90 | public function isIdentifier() |
||
94 | |||
95 | /** |
||
96 | * Setter for isIdentifier |
||
97 | * |
||
98 | * @param boolean $isIdentifier |
||
99 | * @return Attribute |
||
100 | */ |
||
101 | public function setIsIdentifier($isIdentifier) |
||
106 | |||
107 | /** |
||
108 | * Getter for attributeName |
||
109 | * |
||
110 | * @return string |
||
111 | */ |
||
112 | public function getAttributeName() |
||
116 | |||
117 | /** |
||
118 | * Setter for attributeName |
||
119 | * |
||
120 | * @param string $attributeName |
||
121 | * @return Attribute |
||
122 | */ |
||
123 | public function setAttributeName($attributeName) |
||
129 | } |
||
130 |