Passed
Push — master ( 583371...613693 )
by Alex
03:44
created

TFunctionType::getPrecision()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edm;
4
5
/**
6
 * Class representing TFunctionType
7
 *
8
 *
9
 * XSD Type: TFunction
10
 */
11
class TFunctionType
12
{
13
14
    /**
15
     * @property string $name
16
     */
17
    private $name = null;
18
19
    /**
20
     * @property \MetadataV3\edm\TFunctionReturnTypeType[] $returnType
21
     */
22
    private $returnType = array(
23
        
24
    );
25
26
    /**
27
     * @property boolean $nullable
28
     */
29
    private $nullable = null;
30
31
    /**
32
     * @property string $defaultValue
33
     */
34
    private $defaultValue = null;
35
36
    /**
37
     * @property string $maxLength
38
     */
39
    private $maxLength = null;
40
41
    /**
42
     * @property boolean $fixedLength
43
     */
44
    private $fixedLength = null;
45
46
    /**
47
     * @property integer $precision
48
     */
49
    private $precision = null;
50
51
    /**
52
     * @property integer $scale
53
     */
54
    private $scale = null;
55
56
    /**
57
     * @property boolean $unicode
58
     */
59
    private $unicode = null;
60
61
    /**
62
     * @property string $collation
63
     */
64
    private $collation = null;
65
66
    /**
67
     * @property string $sRID
68
     */
69
    private $sRID = null;
70
71
    /**
72
     * @property \MetadataV3\edm\TDocumentationType $documentation
73
     */
74
    private $documentation = null;
75
76
    /**
77
     * @property \MetadataV3\edm\TFunctionParameterType[] $parameter
78
     */
79
    private $parameter = array(
80
        
81
    );
82
83
    /**
84
     * @property string[] $definingExpression
85
     */
86
    private $definingExpression = array(
87
        
88
    );
89
90
    /**
91
     * Gets as name
92
     *
93
     * @return string
94
     */
95
    public function getName()
96
    {
97
        return $this->name;
98
    }
99
100
    /**
101
     * Sets a new name
102
     *
103
     * @param string $name
104
     * @return self
105
     */
106
    public function setName($name)
107
    {
108
        $this->name = $name;
109
        return $this;
110
    }
111
112
    /**
113
     * Adds as returnType
114
     *
115
     * @return self
116
     * @param \MetadataV3\edm\TFunctionReturnTypeType $returnType
117
     */
118
    public function addToReturnType(\MetadataV3\edm\TFunctionReturnTypeType $returnType)
119
    {
120
        $this->returnType[] = $returnType;
121
        return $this;
122
    }
123
124
    /**
125
     * isset returnType
126
     *
127
     * @param scalar $index
128
     * @return boolean
129
     */
130
    public function issetReturnType($index)
131
    {
132
        return isset($this->returnType[$index]);
133
    }
134
135
    /**
136
     * unset returnType
137
     *
138
     * @param scalar $index
139
     * @return void
140
     */
141
    public function unsetReturnType($index)
142
    {
143
        unset($this->returnType[$index]);
144
    }
145
146
    /**
147
     * Gets as returnType
148
     *
149
     * @return \MetadataV3\edm\TFunctionReturnTypeType[]
150
     */
151
    public function getReturnType()
152
    {
153
        return $this->returnType;
154
    }
155
156
    /**
157
     * Sets a new returnType
158
     *
159
     * @param \MetadataV3\edm\TFunctionReturnTypeType[] $returnType
160
     * @return self
161
     */
162
    public function setReturnType(array $returnType)
163
    {
164
        $this->returnType = $returnType;
165
        return $this;
166
    }
167
168
    /**
169
     * Gets as nullable
170
     *
171
     * @return boolean
172
     */
173
    public function getNullable()
174
    {
175
        return $this->nullable;
176
    }
177
178
    /**
179
     * Sets a new nullable
180
     *
181
     * @param boolean $nullable
182
     * @return self
183
     */
184
    public function setNullable($nullable)
185
    {
186
        $this->nullable = $nullable;
187
        return $this;
188
    }
189
190
    /**
191
     * Gets as defaultValue
192
     *
193
     * @return string
194
     */
195
    public function getDefaultValue()
196
    {
197
        return $this->defaultValue;
198
    }
199
200
    /**
201
     * Sets a new defaultValue
202
     *
203
     * @param string $defaultValue
204
     * @return self
205
     */
206
    public function setDefaultValue($defaultValue)
207
    {
208
        $this->defaultValue = $defaultValue;
209
        return $this;
210
    }
211
212
    /**
213
     * Gets as maxLength
214
     *
215
     * @return string
216
     */
217
    public function getMaxLength()
218
    {
219
        return $this->maxLength;
220
    }
221
222
    /**
223
     * Sets a new maxLength
224
     *
225
     * @param string $maxLength
226
     * @return self
227
     */
228
    public function setMaxLength($maxLength)
229
    {
230
        $this->maxLength = $maxLength;
231
        return $this;
232
    }
233
234
    /**
235
     * Gets as fixedLength
236
     *
237
     * @return boolean
238
     */
239
    public function getFixedLength()
240
    {
241
        return $this->fixedLength;
242
    }
243
244
    /**
245
     * Sets a new fixedLength
246
     *
247
     * @param boolean $fixedLength
248
     * @return self
249
     */
250
    public function setFixedLength($fixedLength)
251
    {
252
        $this->fixedLength = $fixedLength;
253
        return $this;
254
    }
255
256
    /**
257
     * Gets as precision
258
     *
259
     * @return integer
260
     */
261
    public function getPrecision()
262
    {
263
        return $this->precision;
264
    }
265
266
    /**
267
     * Sets a new precision
268
     *
269
     * @param integer $precision
270
     * @return self
271
     */
272
    public function setPrecision($precision)
273
    {
274
        $this->precision = $precision;
275
        return $this;
276
    }
277
278
    /**
279
     * Gets as scale
280
     *
281
     * @return integer
282
     */
283
    public function getScale()
284
    {
285
        return $this->scale;
286
    }
287
288
    /**
289
     * Sets a new scale
290
     *
291
     * @param integer $scale
292
     * @return self
293
     */
294
    public function setScale($scale)
295
    {
296
        $this->scale = $scale;
297
        return $this;
298
    }
299
300
    /**
301
     * Gets as unicode
302
     *
303
     * @return boolean
304
     */
305
    public function getUnicode()
306
    {
307
        return $this->unicode;
308
    }
309
310
    /**
311
     * Sets a new unicode
312
     *
313
     * @param boolean $unicode
314
     * @return self
315
     */
316
    public function setUnicode($unicode)
317
    {
318
        $this->unicode = $unicode;
319
        return $this;
320
    }
321
322
    /**
323
     * Gets as collation
324
     *
325
     * @return string
326
     */
327
    public function getCollation()
328
    {
329
        return $this->collation;
330
    }
331
332
    /**
333
     * Sets a new collation
334
     *
335
     * @param string $collation
336
     * @return self
337
     */
338
    public function setCollation($collation)
339
    {
340
        $this->collation = $collation;
341
        return $this;
342
    }
343
344
    /**
345
     * Gets as sRID
346
     *
347
     * @return string
348
     */
349
    public function getSRID()
350
    {
351
        return $this->sRID;
352
    }
353
354
    /**
355
     * Sets a new sRID
356
     *
357
     * @param string $sRID
358
     * @return self
359
     */
360
    public function setSRID($sRID)
361
    {
362
        $this->sRID = $sRID;
363
        return $this;
364
    }
365
366
    /**
367
     * Gets as documentation
368
     *
369
     * @return \MetadataV3\edm\TDocumentationType
370
     */
371
    public function getDocumentation()
372
    {
373
        return $this->documentation;
374
    }
375
376
    /**
377
     * Sets a new documentation
378
     *
379
     * @param \MetadataV3\edm\TDocumentationType $documentation
380
     * @return self
381
     */
382
    public function setDocumentation(\MetadataV3\edm\TDocumentationType $documentation)
383
    {
384
        $this->documentation = $documentation;
385
        return $this;
386
    }
387
388
    /**
389
     * Adds as parameter
390
     *
391
     * @return self
392
     * @param \MetadataV3\edm\TFunctionParameterType $parameter
393
     */
394
    public function addToParameter(\MetadataV3\edm\TFunctionParameterType $parameter)
395
    {
396
        $this->parameter[] = $parameter;
397
        return $this;
398
    }
399
400
    /**
401
     * isset parameter
402
     *
403
     * @param scalar $index
404
     * @return boolean
405
     */
406
    public function issetParameter($index)
407
    {
408
        return isset($this->parameter[$index]);
409
    }
410
411
    /**
412
     * unset parameter
413
     *
414
     * @param scalar $index
415
     * @return void
416
     */
417
    public function unsetParameter($index)
418
    {
419
        unset($this->parameter[$index]);
420
    }
421
422
    /**
423
     * Gets as parameter
424
     *
425
     * @return \MetadataV3\edm\TFunctionParameterType[]
426
     */
427
    public function getParameter()
428
    {
429
        return $this->parameter;
430
    }
431
432
    /**
433
     * Sets a new parameter
434
     *
435
     * @param \MetadataV3\edm\TFunctionParameterType[] $parameter
436
     * @return self
437
     */
438
    public function setParameter(array $parameter)
439
    {
440
        $this->parameter = $parameter;
441
        return $this;
442
    }
443
444
    /**
445
     * Adds as definingExpression
446
     *
447
     * @return self
448
     * @param string $definingExpression
449
     */
450
    public function addToDefiningExpression($definingExpression)
451
    {
452
        $this->definingExpression[] = $definingExpression;
453
        return $this;
454
    }
455
456
    /**
457
     * isset definingExpression
458
     *
459
     * @param scalar $index
460
     * @return boolean
461
     */
462
    public function issetDefiningExpression($index)
463
    {
464
        return isset($this->definingExpression[$index]);
465
    }
466
467
    /**
468
     * unset definingExpression
469
     *
470
     * @param scalar $index
471
     * @return void
472
     */
473
    public function unsetDefiningExpression($index)
474
    {
475
        unset($this->definingExpression[$index]);
476
    }
477
478
    /**
479
     * Gets as definingExpression
480
     *
481
     * @return string[]
482
     */
483
    public function getDefiningExpression()
484
    {
485
        return $this->definingExpression;
486
    }
487
488
    /**
489
     * Sets a new definingExpression
490
     *
491
     * @param string $definingExpression
492
     * @return self
493
     */
494
    public function setDefiningExpression(array $definingExpression)
495
    {
496
        $this->definingExpression = $definingExpression;
497
        return $this;
498
    }
499
}
500