1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class representing TParameterType |
7
|
|
|
* |
8
|
|
|
* |
9
|
|
|
* XSD Type: TParameter |
10
|
|
|
*/ |
11
|
|
View Code Duplication |
class TParameterType |
|
|
|
|
12
|
|
|
{ |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* @property string $name |
16
|
|
|
*/ |
17
|
|
|
private $name = null; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @property string $type |
21
|
|
|
*/ |
22
|
|
|
private $type = null; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @property string $mode |
26
|
|
|
*/ |
27
|
|
|
private $mode = null; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @property string $maxLength |
31
|
|
|
*/ |
32
|
|
|
private $maxLength = null; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @property integer $precision |
36
|
|
|
*/ |
37
|
|
|
private $precision = null; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @property integer $scale |
41
|
|
|
*/ |
42
|
|
|
private $scale = null; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @property string $sRID |
46
|
|
|
*/ |
47
|
|
|
private $sRID = null; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @property \MetadataV3\edm\ssdl\TDocumentationType $documentation |
51
|
|
|
*/ |
52
|
|
|
private $documentation = null; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* Gets as name |
56
|
|
|
* |
57
|
|
|
* @return string |
58
|
|
|
*/ |
59
|
|
|
public function getName() |
60
|
|
|
{ |
61
|
|
|
return $this->name; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* Sets a new name |
66
|
|
|
* |
67
|
|
|
* @param string $name |
68
|
|
|
* @return self |
69
|
|
|
*/ |
70
|
|
|
public function setName($name) |
71
|
|
|
{ |
72
|
|
|
$this->name = $name; |
73
|
|
|
return $this; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* Gets as type |
78
|
|
|
* |
79
|
|
|
* @return string |
80
|
|
|
*/ |
81
|
|
|
public function getType() |
82
|
|
|
{ |
83
|
|
|
return $this->type; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* Sets a new type |
88
|
|
|
* |
89
|
|
|
* @param string $type |
90
|
|
|
* @return self |
91
|
|
|
*/ |
92
|
|
|
public function setType($type) |
93
|
|
|
{ |
94
|
|
|
$this->type = $type; |
95
|
|
|
return $this; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* Gets as mode |
100
|
|
|
* |
101
|
|
|
* @return string |
102
|
|
|
*/ |
103
|
|
|
public function getMode() |
104
|
|
|
{ |
105
|
|
|
return $this->mode; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* Sets a new mode |
110
|
|
|
* |
111
|
|
|
* @param string $mode |
112
|
|
|
* @return self |
113
|
|
|
*/ |
114
|
|
|
public function setMode($mode) |
115
|
|
|
{ |
116
|
|
|
$this->mode = $mode; |
117
|
|
|
return $this; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* Gets as maxLength |
122
|
|
|
* |
123
|
|
|
* @return string |
124
|
|
|
*/ |
125
|
|
|
public function getMaxLength() |
126
|
|
|
{ |
127
|
|
|
return $this->maxLength; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* Sets a new maxLength |
132
|
|
|
* |
133
|
|
|
* @param string $maxLength |
134
|
|
|
* @return self |
135
|
|
|
*/ |
136
|
|
|
public function setMaxLength($maxLength) |
137
|
|
|
{ |
138
|
|
|
$this->maxLength = $maxLength; |
139
|
|
|
return $this; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* Gets as precision |
144
|
|
|
* |
145
|
|
|
* @return integer |
146
|
|
|
*/ |
147
|
|
|
public function getPrecision() |
148
|
|
|
{ |
149
|
|
|
return $this->precision; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* Sets a new precision |
154
|
|
|
* |
155
|
|
|
* @param integer $precision |
156
|
|
|
* @return self |
157
|
|
|
*/ |
158
|
|
|
public function setPrecision($precision) |
159
|
|
|
{ |
160
|
|
|
$this->precision = $precision; |
161
|
|
|
return $this; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
/** |
165
|
|
|
* Gets as scale |
166
|
|
|
* |
167
|
|
|
* @return integer |
168
|
|
|
*/ |
169
|
|
|
public function getScale() |
170
|
|
|
{ |
171
|
|
|
return $this->scale; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* Sets a new scale |
176
|
|
|
* |
177
|
|
|
* @param integer $scale |
178
|
|
|
* @return self |
179
|
|
|
*/ |
180
|
|
|
public function setScale($scale) |
181
|
|
|
{ |
182
|
|
|
$this->scale = $scale; |
183
|
|
|
return $this; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* Gets as sRID |
188
|
|
|
* |
189
|
|
|
* @return string |
190
|
|
|
*/ |
191
|
|
|
public function getSRID() |
192
|
|
|
{ |
193
|
|
|
return $this->sRID; |
194
|
|
|
} |
195
|
|
|
|
196
|
|
|
/** |
197
|
|
|
* Sets a new sRID |
198
|
|
|
* |
199
|
|
|
* @param string $sRID |
200
|
|
|
* @return self |
201
|
|
|
*/ |
202
|
|
|
public function setSRID($sRID) |
203
|
|
|
{ |
204
|
|
|
$this->sRID = $sRID; |
205
|
|
|
return $this; |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
/** |
209
|
|
|
* Gets as documentation |
210
|
|
|
* |
211
|
|
|
* @return \MetadataV3\edm\ssdl\TDocumentationType |
212
|
|
|
*/ |
213
|
|
|
public function getDocumentation() |
214
|
|
|
{ |
215
|
|
|
return $this->documentation; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* Sets a new documentation |
220
|
|
|
* |
221
|
|
|
* @param \MetadataV3\edm\ssdl\TDocumentationType $documentation |
222
|
|
|
* @return self |
223
|
|
|
*/ |
224
|
|
|
public function setDocumentation(\MetadataV3\edm\ssdl\TDocumentationType $documentation) |
225
|
|
|
{ |
226
|
|
|
$this->documentation = $documentation; |
227
|
|
|
return $this; |
228
|
|
|
} |
229
|
|
|
} |
230
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.