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

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