|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AlgoWeb\ODataMetadata\MetadataV2\edm; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* Class representing TComplexTypePropertyType |
|
7
|
|
|
* |
|
8
|
|
|
* |
|
9
|
|
|
* XSD Type: TComplexTypeProperty |
|
10
|
|
|
*/ |
|
11
|
|
View Code Duplication |
class TComplexTypePropertyType |
|
|
|
|
|
|
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 boolean $nullable |
|
26
|
|
|
*/ |
|
27
|
|
|
private $nullable = null; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* @property string $defaultValue |
|
31
|
|
|
*/ |
|
32
|
|
|
private $defaultValue = null; |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @property string $maxLength |
|
36
|
|
|
*/ |
|
37
|
|
|
private $maxLength = null; |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* @property boolean $fixedLength |
|
41
|
|
|
*/ |
|
42
|
|
|
private $fixedLength = null; |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* @property integer $precision |
|
46
|
|
|
*/ |
|
47
|
|
|
private $precision = null; |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* @property integer $scale |
|
51
|
|
|
*/ |
|
52
|
|
|
private $scale = null; |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* @property boolean $unicode |
|
56
|
|
|
*/ |
|
57
|
|
|
private $unicode = null; |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* @property string $collation |
|
61
|
|
|
*/ |
|
62
|
|
|
private $collation = null; |
|
63
|
|
|
|
|
64
|
|
|
/** |
|
65
|
|
|
* @property string $concurrencyMode |
|
66
|
|
|
*/ |
|
67
|
|
|
private $concurrencyMode = null; |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* @property string $setterAccess |
|
71
|
|
|
*/ |
|
72
|
|
|
private $setterAccess = null; |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @property string $getterAccess |
|
76
|
|
|
*/ |
|
77
|
|
|
private $getterAccess = null; |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* @property \MetadataV2\edm\TDocumentationType $documentation |
|
81
|
|
|
*/ |
|
82
|
|
|
private $documentation = null; |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* Gets as name |
|
86
|
|
|
* |
|
87
|
|
|
* @return string |
|
88
|
|
|
*/ |
|
89
|
|
|
public function getName() |
|
90
|
|
|
{ |
|
91
|
|
|
return $this->name; |
|
92
|
|
|
} |
|
93
|
|
|
|
|
94
|
|
|
/** |
|
95
|
|
|
* Sets a new name |
|
96
|
|
|
* |
|
97
|
|
|
* @param string $name |
|
98
|
|
|
* @return self |
|
99
|
|
|
*/ |
|
100
|
|
|
public function setName($name) |
|
101
|
|
|
{ |
|
102
|
|
|
$this->name = $name; |
|
103
|
|
|
return $this; |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* Gets as type |
|
108
|
|
|
* |
|
109
|
|
|
* @return string |
|
110
|
|
|
*/ |
|
111
|
|
|
public function getType() |
|
112
|
|
|
{ |
|
113
|
|
|
return $this->type; |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* Sets a new type |
|
118
|
|
|
* |
|
119
|
|
|
* @param string $type |
|
120
|
|
|
* @return self |
|
121
|
|
|
*/ |
|
122
|
|
|
public function setType($type) |
|
123
|
|
|
{ |
|
124
|
|
|
$this->type = $type; |
|
125
|
|
|
return $this; |
|
126
|
|
|
} |
|
127
|
|
|
|
|
128
|
|
|
/** |
|
129
|
|
|
* Gets as nullable |
|
130
|
|
|
* |
|
131
|
|
|
* @return boolean |
|
132
|
|
|
*/ |
|
133
|
|
|
public function getNullable() |
|
134
|
|
|
{ |
|
135
|
|
|
return $this->nullable; |
|
136
|
|
|
} |
|
137
|
|
|
|
|
138
|
|
|
/** |
|
139
|
|
|
* Sets a new nullable |
|
140
|
|
|
* |
|
141
|
|
|
* @param boolean $nullable |
|
142
|
|
|
* @return self |
|
143
|
|
|
*/ |
|
144
|
|
|
public function setNullable($nullable) |
|
145
|
|
|
{ |
|
146
|
|
|
$this->nullable = $nullable; |
|
147
|
|
|
return $this; |
|
148
|
|
|
} |
|
149
|
|
|
|
|
150
|
|
|
/** |
|
151
|
|
|
* Gets as defaultValue |
|
152
|
|
|
* |
|
153
|
|
|
* @return string |
|
154
|
|
|
*/ |
|
155
|
|
|
public function getDefaultValue() |
|
156
|
|
|
{ |
|
157
|
|
|
return $this->defaultValue; |
|
158
|
|
|
} |
|
159
|
|
|
|
|
160
|
|
|
/** |
|
161
|
|
|
* Sets a new defaultValue |
|
162
|
|
|
* |
|
163
|
|
|
* @param string $defaultValue |
|
164
|
|
|
* @return self |
|
165
|
|
|
*/ |
|
166
|
|
|
public function setDefaultValue($defaultValue) |
|
167
|
|
|
{ |
|
168
|
|
|
$this->defaultValue = $defaultValue; |
|
169
|
|
|
return $this; |
|
170
|
|
|
} |
|
171
|
|
|
|
|
172
|
|
|
/** |
|
173
|
|
|
* Gets as maxLength |
|
174
|
|
|
* |
|
175
|
|
|
* @return string |
|
176
|
|
|
*/ |
|
177
|
|
|
public function getMaxLength() |
|
178
|
|
|
{ |
|
179
|
|
|
return $this->maxLength; |
|
180
|
|
|
} |
|
181
|
|
|
|
|
182
|
|
|
/** |
|
183
|
|
|
* Sets a new maxLength |
|
184
|
|
|
* |
|
185
|
|
|
* @param string $maxLength |
|
186
|
|
|
* @return self |
|
187
|
|
|
*/ |
|
188
|
|
|
public function setMaxLength($maxLength) |
|
189
|
|
|
{ |
|
190
|
|
|
$this->maxLength = $maxLength; |
|
191
|
|
|
return $this; |
|
192
|
|
|
} |
|
193
|
|
|
|
|
194
|
|
|
/** |
|
195
|
|
|
* Gets as fixedLength |
|
196
|
|
|
* |
|
197
|
|
|
* @return boolean |
|
198
|
|
|
*/ |
|
199
|
|
|
public function getFixedLength() |
|
200
|
|
|
{ |
|
201
|
|
|
return $this->fixedLength; |
|
202
|
|
|
} |
|
203
|
|
|
|
|
204
|
|
|
/** |
|
205
|
|
|
* Sets a new fixedLength |
|
206
|
|
|
* |
|
207
|
|
|
* @param boolean $fixedLength |
|
208
|
|
|
* @return self |
|
209
|
|
|
*/ |
|
210
|
|
|
public function setFixedLength($fixedLength) |
|
211
|
|
|
{ |
|
212
|
|
|
$this->fixedLength = $fixedLength; |
|
213
|
|
|
return $this; |
|
214
|
|
|
} |
|
215
|
|
|
|
|
216
|
|
|
/** |
|
217
|
|
|
* Gets as precision |
|
218
|
|
|
* |
|
219
|
|
|
* @return integer |
|
220
|
|
|
*/ |
|
221
|
|
|
public function getPrecision() |
|
222
|
|
|
{ |
|
223
|
|
|
return $this->precision; |
|
224
|
|
|
} |
|
225
|
|
|
|
|
226
|
|
|
/** |
|
227
|
|
|
* Sets a new precision |
|
228
|
|
|
* |
|
229
|
|
|
* @param integer $precision |
|
230
|
|
|
* @return self |
|
231
|
|
|
*/ |
|
232
|
|
|
public function setPrecision($precision) |
|
233
|
|
|
{ |
|
234
|
|
|
$this->precision = $precision; |
|
235
|
|
|
return $this; |
|
236
|
|
|
} |
|
237
|
|
|
|
|
238
|
|
|
/** |
|
239
|
|
|
* Gets as scale |
|
240
|
|
|
* |
|
241
|
|
|
* @return integer |
|
242
|
|
|
*/ |
|
243
|
|
|
public function getScale() |
|
244
|
|
|
{ |
|
245
|
|
|
return $this->scale; |
|
246
|
|
|
} |
|
247
|
|
|
|
|
248
|
|
|
/** |
|
249
|
|
|
* Sets a new scale |
|
250
|
|
|
* |
|
251
|
|
|
* @param integer $scale |
|
252
|
|
|
* @return self |
|
253
|
|
|
*/ |
|
254
|
|
|
public function setScale($scale) |
|
255
|
|
|
{ |
|
256
|
|
|
$this->scale = $scale; |
|
257
|
|
|
return $this; |
|
258
|
|
|
} |
|
259
|
|
|
|
|
260
|
|
|
/** |
|
261
|
|
|
* Gets as unicode |
|
262
|
|
|
* |
|
263
|
|
|
* @return boolean |
|
264
|
|
|
*/ |
|
265
|
|
|
public function getUnicode() |
|
266
|
|
|
{ |
|
267
|
|
|
return $this->unicode; |
|
268
|
|
|
} |
|
269
|
|
|
|
|
270
|
|
|
/** |
|
271
|
|
|
* Sets a new unicode |
|
272
|
|
|
* |
|
273
|
|
|
* @param boolean $unicode |
|
274
|
|
|
* @return self |
|
275
|
|
|
*/ |
|
276
|
|
|
public function setUnicode($unicode) |
|
277
|
|
|
{ |
|
278
|
|
|
$this->unicode = $unicode; |
|
279
|
|
|
return $this; |
|
280
|
|
|
} |
|
281
|
|
|
|
|
282
|
|
|
/** |
|
283
|
|
|
* Gets as collation |
|
284
|
|
|
* |
|
285
|
|
|
* @return string |
|
286
|
|
|
*/ |
|
287
|
|
|
public function getCollation() |
|
288
|
|
|
{ |
|
289
|
|
|
return $this->collation; |
|
290
|
|
|
} |
|
291
|
|
|
|
|
292
|
|
|
/** |
|
293
|
|
|
* Sets a new collation |
|
294
|
|
|
* |
|
295
|
|
|
* @param string $collation |
|
296
|
|
|
* @return self |
|
297
|
|
|
*/ |
|
298
|
|
|
public function setCollation($collation) |
|
299
|
|
|
{ |
|
300
|
|
|
$this->collation = $collation; |
|
301
|
|
|
return $this; |
|
302
|
|
|
} |
|
303
|
|
|
|
|
304
|
|
|
/** |
|
305
|
|
|
* Gets as concurrencyMode |
|
306
|
|
|
* |
|
307
|
|
|
* @return string |
|
308
|
|
|
*/ |
|
309
|
|
|
public function getConcurrencyMode() |
|
310
|
|
|
{ |
|
311
|
|
|
return $this->concurrencyMode; |
|
312
|
|
|
} |
|
313
|
|
|
|
|
314
|
|
|
/** |
|
315
|
|
|
* Sets a new concurrencyMode |
|
316
|
|
|
* |
|
317
|
|
|
* @param string $concurrencyMode |
|
318
|
|
|
* @return self |
|
319
|
|
|
*/ |
|
320
|
|
|
public function setConcurrencyMode($concurrencyMode) |
|
321
|
|
|
{ |
|
322
|
|
|
$this->concurrencyMode = $concurrencyMode; |
|
323
|
|
|
return $this; |
|
324
|
|
|
} |
|
325
|
|
|
|
|
326
|
|
|
/** |
|
327
|
|
|
* Gets as setterAccess |
|
328
|
|
|
* |
|
329
|
|
|
* @return string |
|
330
|
|
|
*/ |
|
331
|
|
|
public function getSetterAccess() |
|
332
|
|
|
{ |
|
333
|
|
|
return $this->setterAccess; |
|
334
|
|
|
} |
|
335
|
|
|
|
|
336
|
|
|
/** |
|
337
|
|
|
* Sets a new setterAccess |
|
338
|
|
|
* |
|
339
|
|
|
* @param string $setterAccess |
|
340
|
|
|
* @return self |
|
341
|
|
|
*/ |
|
342
|
|
|
public function setSetterAccess($setterAccess) |
|
343
|
|
|
{ |
|
344
|
|
|
$this->setterAccess = $setterAccess; |
|
345
|
|
|
return $this; |
|
346
|
|
|
} |
|
347
|
|
|
|
|
348
|
|
|
/** |
|
349
|
|
|
* Gets as getterAccess |
|
350
|
|
|
* |
|
351
|
|
|
* @return string |
|
352
|
|
|
*/ |
|
353
|
|
|
public function getGetterAccess() |
|
354
|
|
|
{ |
|
355
|
|
|
return $this->getterAccess; |
|
356
|
|
|
} |
|
357
|
|
|
|
|
358
|
|
|
/** |
|
359
|
|
|
* Sets a new getterAccess |
|
360
|
|
|
* |
|
361
|
|
|
* @param string $getterAccess |
|
362
|
|
|
* @return self |
|
363
|
|
|
*/ |
|
364
|
|
|
public function setGetterAccess($getterAccess) |
|
365
|
|
|
{ |
|
366
|
|
|
$this->getterAccess = $getterAccess; |
|
367
|
|
|
return $this; |
|
368
|
|
|
} |
|
369
|
|
|
|
|
370
|
|
|
/** |
|
371
|
|
|
* Gets as documentation |
|
372
|
|
|
* |
|
373
|
|
|
* @return \MetadataV2\edm\TDocumentationType |
|
374
|
|
|
*/ |
|
375
|
|
|
public function getDocumentation() |
|
376
|
|
|
{ |
|
377
|
|
|
return $this->documentation; |
|
378
|
|
|
} |
|
379
|
|
|
|
|
380
|
|
|
/** |
|
381
|
|
|
* Sets a new documentation |
|
382
|
|
|
* |
|
383
|
|
|
* @param \MetadataV2\edm\TDocumentationType $documentation |
|
384
|
|
|
* @return self |
|
385
|
|
|
*/ |
|
386
|
|
|
public function setDocumentation(\MetadataV2\edm\TDocumentationType $documentation) |
|
387
|
|
|
{ |
|
388
|
|
|
$this->documentation = $documentation; |
|
389
|
|
|
return $this; |
|
390
|
|
|
} |
|
391
|
|
|
} |
|
392
|
|
|
|
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.