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

TFunctionParameterType::setCollation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
dl 5
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV2\edm;
4
5
/**
6
 * Class representing TFunctionParameterType
7
 *
8
 *
9
 * XSD Type: TFunctionParameter
10
 */
11 View Code Duplication
class TFunctionParameterType
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

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.

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