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

TFunctionType::setNullable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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