Passed
Push — master ( c03365...9d1091 )
by Alex
07:25
created

TValueTermType::getReferenceType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edm;
4
5
/**
6
 * Class representing TValueTermType
7
 *
8
 *
9
 * XSD Type: TValueTerm
10
 */
11
class TValueTermType
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 $sRID
66
     */
67
    private $sRID = null;
68
69
    /**
70
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
71
     */
72
    private $documentation = null;
73
74
    /**
75
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TCollectionTypeType $collectionType
76
     */
77
    private $collectionType = null;
78
79
    /**
80
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferenceTypeType $referenceType
81
     */
82
    private $referenceType = null;
83
84
    /**
85
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyType[] $rowType
86
     */
87
    private $rowType = null;
88
89
    /**
90
     * Gets as name
91
     *
92
     * @return string
93
     */
94
    public function getName()
95
    {
96
        return $this->name;
97
    }
98
99
    /**
100
     * Sets a new name
101
     *
102
     * @param string $name
103
     * @return self
104
     */
105
    public function setName($name)
106
    {
107
        $this->name = $name;
108
        return $this;
109
    }
110
111
    /**
112
     * Gets as type
113
     *
114
     * @return string
115
     */
116
    public function getType()
117
    {
118
        return $this->type;
119
    }
120
121
    /**
122
     * Sets a new type
123
     *
124
     * @param string $type
125
     * @return self
126
     */
127
    public function setType($type)
128
    {
129
        $this->type = $type;
130
        return $this;
131
    }
132
133
    /**
134
     * Gets as nullable
135
     *
136
     * @return boolean
137
     */
138
    public function getNullable()
139
    {
140
        return $this->nullable;
141
    }
142
143
    /**
144
     * Sets a new nullable
145
     *
146
     * @param boolean $nullable
147
     * @return self
148
     */
149
    public function setNullable($nullable)
150
    {
151
        $this->nullable = $nullable;
152
        return $this;
153
    }
154
155
    /**
156
     * Gets as defaultValue
157
     *
158
     * @return string
159
     */
160
    public function getDefaultValue()
161
    {
162
        return $this->defaultValue;
163
    }
164
165
    /**
166
     * Sets a new defaultValue
167
     *
168
     * @param string $defaultValue
169
     * @return self
170
     */
171
    public function setDefaultValue($defaultValue)
172
    {
173
        $this->defaultValue = $defaultValue;
174
        return $this;
175
    }
176
177
    /**
178
     * Gets as maxLength
179
     *
180
     * @return string
181
     */
182
    public function getMaxLength()
183
    {
184
        return $this->maxLength;
185
    }
186
187
    /**
188
     * Sets a new maxLength
189
     *
190
     * @param string $maxLength
191
     * @return self
192
     */
193
    public function setMaxLength($maxLength)
194
    {
195
        $this->maxLength = $maxLength;
196
        return $this;
197
    }
198
199
    /**
200
     * Gets as fixedLength
201
     *
202
     * @return boolean
203
     */
204
    public function getFixedLength()
205
    {
206
        return $this->fixedLength;
207
    }
208
209
    /**
210
     * Sets a new fixedLength
211
     *
212
     * @param boolean $fixedLength
213
     * @return self
214
     */
215
    public function setFixedLength($fixedLength)
216
    {
217
        $this->fixedLength = $fixedLength;
218
        return $this;
219
    }
220
221
    /**
222
     * Gets as precision
223
     *
224
     * @return integer
225
     */
226
    public function getPrecision()
227
    {
228
        return $this->precision;
229
    }
230
231
    /**
232
     * Sets a new precision
233
     *
234
     * @param integer $precision
235
     * @return self
236
     */
237
    public function setPrecision($precision)
238
    {
239
        $this->precision = $precision;
240
        return $this;
241
    }
242
243
    /**
244
     * Gets as scale
245
     *
246
     * @return integer
247
     */
248
    public function getScale()
249
    {
250
        return $this->scale;
251
    }
252
253
    /**
254
     * Sets a new scale
255
     *
256
     * @param integer $scale
257
     * @return self
258
     */
259
    public function setScale($scale)
260
    {
261
        $this->scale = $scale;
262
        return $this;
263
    }
264
265
    /**
266
     * Gets as unicode
267
     *
268
     * @return boolean
269
     */
270
    public function getUnicode()
271
    {
272
        return $this->unicode;
273
    }
274
275
    /**
276
     * Sets a new unicode
277
     *
278
     * @param boolean $unicode
279
     * @return self
280
     */
281
    public function setUnicode($unicode)
282
    {
283
        $this->unicode = $unicode;
284
        return $this;
285
    }
286
287
    /**
288
     * Gets as collation
289
     *
290
     * @return string
291
     */
292
    public function getCollation()
293
    {
294
        return $this->collation;
295
    }
296
297
    /**
298
     * Sets a new collation
299
     *
300
     * @param string $collation
301
     * @return self
302
     */
303
    public function setCollation($collation)
304
    {
305
        $this->collation = $collation;
306
        return $this;
307
    }
308
309
    /**
310
     * Gets as sRID
311
     *
312
     * @return string
313
     */
314
    public function getSRID()
315
    {
316
        return $this->sRID;
317
    }
318
319
    /**
320
     * Sets a new sRID
321
     *
322
     * @param string $sRID
323
     * @return self
324
     */
325
    public function setSRID($sRID)
326
    {
327
        $this->sRID = $sRID;
328
        return $this;
329
    }
330
331
    /**
332
     * Gets as documentation
333
     *
334
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType
335
     */
336
    public function getDocumentation()
337
    {
338
        return $this->documentation;
339
    }
340
341
    /**
342
     * Sets a new documentation
343
     *
344
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
345
     * @return self
346
     */
347
    public function setDocumentation(TDocumentationType $documentation)
348
    {
349
        $this->documentation = $documentation;
350
        return $this;
351
    }
352
353
    /**
354
     * Gets as collectionType
355
     *
356
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TCollectionTypeType
357
     */
358
    public function getCollectionType()
359
    {
360
        return $this->collectionType;
361
    }
362
363
    /**
364
     * Sets a new collectionType
365
     *
366
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TCollectionTypeType $collectionType
367
     * @return self
368
     */
369
    public function setCollectionType(TCollectionTypeType $collectionType)
370
    {
371
        $this->collectionType = $collectionType;
372
        return $this;
373
    }
374
375
    /**
376
     * Gets as referenceType
377
     *
378
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferenceTypeType
379
     */
380
    public function getReferenceType()
381
    {
382
        return $this->referenceType;
383
    }
384
385
    /**
386
     * Sets a new referenceType
387
     *
388
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferenceTypeType $referenceType
389
     * @return self
390
     */
391
    public function setReferenceType(TReferenceTypeType $referenceType)
392
    {
393
        $this->referenceType = $referenceType;
394
        return $this;
395
    }
396
397
    /**
398
     * Adds as property
399
     *
400
     * @return self
401
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyType $property
402
     */
403
    public function addToRowType(TPropertyType $property)
404
    {
405
        $this->rowType[] = $property;
406
        return $this;
407
    }
408
409
    /**
410
     * isset rowType
411
     *
412
     * @param scalar $index
413
     * @return boolean
414
     */
415
    public function issetRowType($index)
416
    {
417
        return isset($this->rowType[$index]);
418
    }
419
420
    /**
421
     * unset rowType
422
     *
423
     * @param scalar $index
424
     * @return void
425
     */
426
    public function unsetRowType($index)
427
    {
428
        unset($this->rowType[$index]);
429
    }
430
431
    /**
432
     * Gets as rowType
433
     *
434
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyType[]
435
     */
436
    public function getRowType()
437
    {
438
        return $this->rowType;
439
    }
440
441
    /**
442
     * Sets a new rowType
443
     *
444
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyType[] $rowType
445
     * @return self
446
     */
447
    public function setRowType(array $rowType)
448
    {
449
        $this->rowType = $rowType;
450
        return $this;
451
    }
452
}
453