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

TFunctionType::getCommandText()   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\ssdl;
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\MetadataV3\edm\ssdl\TFunctionReturnTypeType[] $returnType
21
     */
22
    private $returnType = array(
23
        
24
    );
25
26
    /**
27
     * @property boolean $aggregate
28
     */
29
    private $aggregate = null;
30
31
    /**
32
     * @property boolean $builtIn
33
     */
34
    private $builtIn = null;
35
36
    /**
37
     * @property string $storeFunctionName
38
     */
39
    private $storeFunctionName = null;
40
41
    /**
42
     * @property boolean $niladicFunction
43
     */
44
    private $niladicFunction = null;
45
46
    /**
47
     * @property boolean $isComposable
48
     */
49
    private $isComposable = null;
50
51
    /**
52
     * @property string $parameterTypeSemantics
53
     */
54
    private $parameterTypeSemantics = null;
55
56
    /**
57
     * @property string $schema
58
     */
59
    private $schema = null;
60
61
    /**
62
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
63
     */
64
    private $documentation = null;
65
66
    /**
67
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TParameterType[] $parameter
68
     */
69
    private $parameter = array(
70
        
71
    );
72
73
    /**
74
     * @property string[] $commandText
75
     */
76
    private $commandText = array(
77
        
78
    );
79
80
    /**
81
     * Gets as name
82
     *
83
     * @return string
84
     */
85
    public function getName()
86
    {
87
        return $this->name;
88
    }
89
90
    /**
91
     * Sets a new name
92
     *
93
     * @param string $name
94
     * @return self
95
     */
96
    public function setName($name)
97
    {
98
        $this->name = $name;
99
        return $this;
100
    }
101
102
    /**
103
     * Adds as returnType
104
     *
105
     * @return self
106
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionReturnTypeType $returnType
107
     */
108
    public function addToReturnType(TFunctionReturnTypeType $returnType)
109
    {
110
        $this->returnType[] = $returnType;
111
        return $this;
112
    }
113
114
    /**
115
     * isset returnType
116
     *
117
     * @param scalar $index
118
     * @return boolean
119
     */
120
    public function issetReturnType($index)
121
    {
122
        return isset($this->returnType[$index]);
123
    }
124
125
    /**
126
     * unset returnType
127
     *
128
     * @param scalar $index
129
     * @return void
130
     */
131
    public function unsetReturnType($index)
132
    {
133
        unset($this->returnType[$index]);
134
    }
135
136
    /**
137
     * Gets as returnType
138
     *
139
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionReturnTypeType[]
140
     */
141
    public function getReturnType()
142
    {
143
        return $this->returnType;
144
    }
145
146
    /**
147
     * Sets a new returnType
148
     *
149
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionReturnTypeType[] $returnType
150
     * @return self
151
     */
152
    public function setReturnType(array $returnType)
153
    {
154
        $this->returnType = $returnType;
155
        return $this;
156
    }
157
158
    /**
159
     * Gets as aggregate
160
     *
161
     * @return boolean
162
     */
163
    public function getAggregate()
164
    {
165
        return $this->aggregate;
166
    }
167
168
    /**
169
     * Sets a new aggregate
170
     *
171
     * @param boolean $aggregate
172
     * @return self
173
     */
174
    public function setAggregate($aggregate)
175
    {
176
        $this->aggregate = $aggregate;
177
        return $this;
178
    }
179
180
    /**
181
     * Gets as builtIn
182
     *
183
     * @return boolean
184
     */
185
    public function getBuiltIn()
186
    {
187
        return $this->builtIn;
188
    }
189
190
    /**
191
     * Sets a new builtIn
192
     *
193
     * @param boolean $builtIn
194
     * @return self
195
     */
196
    public function setBuiltIn($builtIn)
197
    {
198
        $this->builtIn = $builtIn;
199
        return $this;
200
    }
201
202
    /**
203
     * Gets as storeFunctionName
204
     *
205
     * @return string
206
     */
207
    public function getStoreFunctionName()
208
    {
209
        return $this->storeFunctionName;
210
    }
211
212
    /**
213
     * Sets a new storeFunctionName
214
     *
215
     * @param string $storeFunctionName
216
     * @return self
217
     */
218
    public function setStoreFunctionName($storeFunctionName)
219
    {
220
        $this->storeFunctionName = $storeFunctionName;
221
        return $this;
222
    }
223
224
    /**
225
     * Gets as niladicFunction
226
     *
227
     * @return boolean
228
     */
229
    public function getNiladicFunction()
230
    {
231
        return $this->niladicFunction;
232
    }
233
234
    /**
235
     * Sets a new niladicFunction
236
     *
237
     * @param boolean $niladicFunction
238
     * @return self
239
     */
240
    public function setNiladicFunction($niladicFunction)
241
    {
242
        $this->niladicFunction = $niladicFunction;
243
        return $this;
244
    }
245
246
    /**
247
     * Gets as isComposable
248
     *
249
     * @return boolean
250
     */
251
    public function getIsComposable()
252
    {
253
        return $this->isComposable;
254
    }
255
256
    /**
257
     * Sets a new isComposable
258
     *
259
     * @param boolean $isComposable
260
     * @return self
261
     */
262
    public function setIsComposable($isComposable)
263
    {
264
        $this->isComposable = $isComposable;
265
        return $this;
266
    }
267
268
    /**
269
     * Gets as parameterTypeSemantics
270
     *
271
     * @return string
272
     */
273
    public function getParameterTypeSemantics()
274
    {
275
        return $this->parameterTypeSemantics;
276
    }
277
278
    /**
279
     * Sets a new parameterTypeSemantics
280
     *
281
     * @param string $parameterTypeSemantics
282
     * @return self
283
     */
284
    public function setParameterTypeSemantics($parameterTypeSemantics)
285
    {
286
        $this->parameterTypeSemantics = $parameterTypeSemantics;
287
        return $this;
288
    }
289
290
    /**
291
     * Gets as schema
292
     *
293
     * @return string
294
     */
295
    public function getSchema()
296
    {
297
        return $this->schema;
298
    }
299
300
    /**
301
     * Sets a new schema
302
     *
303
     * @param string $schema
304
     * @return self
305
     */
306
    public function setSchema($schema)
307
    {
308
        $this->schema = $schema;
309
        return $this;
310
    }
311
312
    /**
313
     * Gets as documentation
314
     *
315
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType
316
     */
317
    public function getDocumentation()
318
    {
319
        return $this->documentation;
320
    }
321
322
    /**
323
     * Sets a new documentation
324
     *
325
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
326
     * @return self
327
     */
328
    public function setDocumentation(TDocumentationType $documentation)
329
    {
330
        $this->documentation = $documentation;
331
        return $this;
332
    }
333
334
    /**
335
     * Adds as parameter
336
     *
337
     * @return self
338
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TParameterType $parameter
339
     */
340
    public function addToParameter(TParameterType $parameter)
341
    {
342
        $this->parameter[] = $parameter;
343
        return $this;
344
    }
345
346
    /**
347
     * isset parameter
348
     *
349
     * @param scalar $index
350
     * @return boolean
351
     */
352
    public function issetParameter($index)
353
    {
354
        return isset($this->parameter[$index]);
355
    }
356
357
    /**
358
     * unset parameter
359
     *
360
     * @param scalar $index
361
     * @return void
362
     */
363
    public function unsetParameter($index)
364
    {
365
        unset($this->parameter[$index]);
366
    }
367
368
    /**
369
     * Gets as parameter
370
     *
371
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TParameterType[]
372
     */
373
    public function getParameter()
374
    {
375
        return $this->parameter;
376
    }
377
378
    /**
379
     * Sets a new parameter
380
     *
381
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TParameterType[] $parameter
382
     * @return self
383
     */
384
    public function setParameter(array $parameter)
385
    {
386
        $this->parameter = $parameter;
387
        return $this;
388
    }
389
390
    /**
391
     * Adds as commandText
392
     *
393
     * @return self
394
     * @param string $commandText
395
     */
396
    public function addToCommandText($commandText)
397
    {
398
        $this->commandText[] = $commandText;
399
        return $this;
400
    }
401
402
    /**
403
     * isset commandText
404
     *
405
     * @param scalar $index
406
     * @return boolean
407
     */
408
    public function issetCommandText($index)
409
    {
410
        return isset($this->commandText[$index]);
411
    }
412
413
    /**
414
     * unset commandText
415
     *
416
     * @param scalar $index
417
     * @return void
418
     */
419
    public function unsetCommandText($index)
420
    {
421
        unset($this->commandText[$index]);
422
    }
423
424
    /**
425
     * Gets as commandText
426
     *
427
     * @return string[]
428
     */
429
    public function getCommandText()
430
    {
431
        return $this->commandText;
432
    }
433
434
    /**
435
     * Sets a new commandText
436
     *
437
     * @param string $commandText
438
     * @return self
439
     */
440
    public function setCommandText(array $commandText)
441
    {
442
        $this->commandText = $commandText;
443
        return $this;
444
    }
445
}
446