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

TEntityPropertyType::addToTypeAnnotation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
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\MetadataV3\edm;
4
5
/**
6
 * Class representing TEntityPropertyType
7
 *
8
 *
9
 * XSD Type: TEntityProperty
10
 */
11
class TEntityPropertyType
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 string $sRID
66
     */
67
    private $sRID = null;
68
69
    /**
70
     * @property string $concurrencyMode
71
     */
72
    private $concurrencyMode = null;
73
74
    /**
75
     * @property string $setterAccess
76
     */
77
    private $setterAccess = null;
78
79
    /**
80
     * @property string $getterAccess
81
     */
82
    private $getterAccess = null;
83
84
    /**
85
     * @property string $storeGeneratedPattern
86
     */
87
    private $storeGeneratedPattern = null;
88
89
    /**
90
     * @property \MetadataV3\edm\TDocumentationType[] $documentation
91
     */
92
    private $documentation = array(
93
        
94
    );
95
96
    /**
97
     * @property \MetadataV3\edm\TValueAnnotationType[] $valueAnnotation
98
     */
99
    private $valueAnnotation = array(
100
        
101
    );
102
103
    /**
104
     * @property \MetadataV3\edm\TTypeAnnotationType[] $typeAnnotation
105
     */
106
    private $typeAnnotation = array(
107
        
108
    );
109
110
    /**
111
     * Gets as name
112
     *
113
     * @return string
114
     */
115
    public function getName()
116
    {
117
        return $this->name;
118
    }
119
120
    /**
121
     * Sets a new name
122
     *
123
     * @param string $name
124
     * @return self
125
     */
126
    public function setName($name)
127
    {
128
        $this->name = $name;
129
        return $this;
130
    }
131
132
    /**
133
     * Gets as type
134
     *
135
     * @return string
136
     */
137
    public function getType()
138
    {
139
        return $this->type;
140
    }
141
142
    /**
143
     * Sets a new type
144
     *
145
     * @param string $type
146
     * @return self
147
     */
148
    public function setType($type)
149
    {
150
        $this->type = $type;
151
        return $this;
152
    }
153
154
    /**
155
     * Gets as nullable
156
     *
157
     * @return boolean
158
     */
159
    public function getNullable()
160
    {
161
        return $this->nullable;
162
    }
163
164
    /**
165
     * Sets a new nullable
166
     *
167
     * @param boolean $nullable
168
     * @return self
169
     */
170
    public function setNullable($nullable)
171
    {
172
        $this->nullable = $nullable;
173
        return $this;
174
    }
175
176
    /**
177
     * Gets as defaultValue
178
     *
179
     * @return string
180
     */
181
    public function getDefaultValue()
182
    {
183
        return $this->defaultValue;
184
    }
185
186
    /**
187
     * Sets a new defaultValue
188
     *
189
     * @param string $defaultValue
190
     * @return self
191
     */
192
    public function setDefaultValue($defaultValue)
193
    {
194
        $this->defaultValue = $defaultValue;
195
        return $this;
196
    }
197
198
    /**
199
     * Gets as maxLength
200
     *
201
     * @return string
202
     */
203
    public function getMaxLength()
204
    {
205
        return $this->maxLength;
206
    }
207
208
    /**
209
     * Sets a new maxLength
210
     *
211
     * @param string $maxLength
212
     * @return self
213
     */
214
    public function setMaxLength($maxLength)
215
    {
216
        $this->maxLength = $maxLength;
217
        return $this;
218
    }
219
220
    /**
221
     * Gets as fixedLength
222
     *
223
     * @return boolean
224
     */
225
    public function getFixedLength()
226
    {
227
        return $this->fixedLength;
228
    }
229
230
    /**
231
     * Sets a new fixedLength
232
     *
233
     * @param boolean $fixedLength
234
     * @return self
235
     */
236
    public function setFixedLength($fixedLength)
237
    {
238
        $this->fixedLength = $fixedLength;
239
        return $this;
240
    }
241
242
    /**
243
     * Gets as precision
244
     *
245
     * @return integer
246
     */
247
    public function getPrecision()
248
    {
249
        return $this->precision;
250
    }
251
252
    /**
253
     * Sets a new precision
254
     *
255
     * @param integer $precision
256
     * @return self
257
     */
258
    public function setPrecision($precision)
259
    {
260
        $this->precision = $precision;
261
        return $this;
262
    }
263
264
    /**
265
     * Gets as scale
266
     *
267
     * @return integer
268
     */
269
    public function getScale()
270
    {
271
        return $this->scale;
272
    }
273
274
    /**
275
     * Sets a new scale
276
     *
277
     * @param integer $scale
278
     * @return self
279
     */
280
    public function setScale($scale)
281
    {
282
        $this->scale = $scale;
283
        return $this;
284
    }
285
286
    /**
287
     * Gets as unicode
288
     *
289
     * @return boolean
290
     */
291
    public function getUnicode()
292
    {
293
        return $this->unicode;
294
    }
295
296
    /**
297
     * Sets a new unicode
298
     *
299
     * @param boolean $unicode
300
     * @return self
301
     */
302
    public function setUnicode($unicode)
303
    {
304
        $this->unicode = $unicode;
305
        return $this;
306
    }
307
308
    /**
309
     * Gets as collation
310
     *
311
     * @return string
312
     */
313
    public function getCollation()
314
    {
315
        return $this->collation;
316
    }
317
318
    /**
319
     * Sets a new collation
320
     *
321
     * @param string $collation
322
     * @return self
323
     */
324
    public function setCollation($collation)
325
    {
326
        $this->collation = $collation;
327
        return $this;
328
    }
329
330
    /**
331
     * Gets as sRID
332
     *
333
     * @return string
334
     */
335
    public function getSRID()
336
    {
337
        return $this->sRID;
338
    }
339
340
    /**
341
     * Sets a new sRID
342
     *
343
     * @param string $sRID
344
     * @return self
345
     */
346
    public function setSRID($sRID)
347
    {
348
        $this->sRID = $sRID;
349
        return $this;
350
    }
351
352
    /**
353
     * Gets as concurrencyMode
354
     *
355
     * @return string
356
     */
357
    public function getConcurrencyMode()
358
    {
359
        return $this->concurrencyMode;
360
    }
361
362
    /**
363
     * Sets a new concurrencyMode
364
     *
365
     * @param string $concurrencyMode
366
     * @return self
367
     */
368
    public function setConcurrencyMode($concurrencyMode)
369
    {
370
        $this->concurrencyMode = $concurrencyMode;
371
        return $this;
372
    }
373
374
    /**
375
     * Gets as setterAccess
376
     *
377
     * @return string
378
     */
379
    public function getSetterAccess()
380
    {
381
        return $this->setterAccess;
382
    }
383
384
    /**
385
     * Sets a new setterAccess
386
     *
387
     * @param string $setterAccess
388
     * @return self
389
     */
390
    public function setSetterAccess($setterAccess)
391
    {
392
        $this->setterAccess = $setterAccess;
393
        return $this;
394
    }
395
396
    /**
397
     * Gets as getterAccess
398
     *
399
     * @return string
400
     */
401
    public function getGetterAccess()
402
    {
403
        return $this->getterAccess;
404
    }
405
406
    /**
407
     * Sets a new getterAccess
408
     *
409
     * @param string $getterAccess
410
     * @return self
411
     */
412
    public function setGetterAccess($getterAccess)
413
    {
414
        $this->getterAccess = $getterAccess;
415
        return $this;
416
    }
417
418
    /**
419
     * Gets as storeGeneratedPattern
420
     *
421
     * @return string
422
     */
423
    public function getStoreGeneratedPattern()
424
    {
425
        return $this->storeGeneratedPattern;
426
    }
427
428
    /**
429
     * Sets a new storeGeneratedPattern
430
     *
431
     * @param string $storeGeneratedPattern
432
     * @return self
433
     */
434
    public function setStoreGeneratedPattern($storeGeneratedPattern)
435
    {
436
        $this->storeGeneratedPattern = $storeGeneratedPattern;
437
        return $this;
438
    }
439
440
    /**
441
     * Adds as documentation
442
     *
443
     * @return self
444
     * @param \MetadataV3\edm\TDocumentationType $documentation
445
     */
446
    public function addToDocumentation(\MetadataV3\edm\TDocumentationType $documentation)
447
    {
448
        $this->documentation[] = $documentation;
449
        return $this;
450
    }
451
452
    /**
453
     * isset documentation
454
     *
455
     * @param scalar $index
456
     * @return boolean
457
     */
458
    public function issetDocumentation($index)
459
    {
460
        return isset($this->documentation[$index]);
461
    }
462
463
    /**
464
     * unset documentation
465
     *
466
     * @param scalar $index
467
     * @return void
468
     */
469
    public function unsetDocumentation($index)
470
    {
471
        unset($this->documentation[$index]);
472
    }
473
474
    /**
475
     * Gets as documentation
476
     *
477
     * @return \MetadataV3\edm\TDocumentationType[]
478
     */
479
    public function getDocumentation()
480
    {
481
        return $this->documentation;
482
    }
483
484
    /**
485
     * Sets a new documentation
486
     *
487
     * @param \MetadataV3\edm\TDocumentationType[] $documentation
488
     * @return self
489
     */
490
    public function setDocumentation(array $documentation)
491
    {
492
        $this->documentation = $documentation;
493
        return $this;
494
    }
495
496
    /**
497
     * Adds as valueAnnotation
498
     *
499
     * @return self
500
     * @param \MetadataV3\edm\TValueAnnotationType $valueAnnotation
501
     */
502
    public function addToValueAnnotation(\MetadataV3\edm\TValueAnnotationType $valueAnnotation)
503
    {
504
        $this->valueAnnotation[] = $valueAnnotation;
505
        return $this;
506
    }
507
508
    /**
509
     * isset valueAnnotation
510
     *
511
     * @param scalar $index
512
     * @return boolean
513
     */
514
    public function issetValueAnnotation($index)
515
    {
516
        return isset($this->valueAnnotation[$index]);
517
    }
518
519
    /**
520
     * unset valueAnnotation
521
     *
522
     * @param scalar $index
523
     * @return void
524
     */
525
    public function unsetValueAnnotation($index)
526
    {
527
        unset($this->valueAnnotation[$index]);
528
    }
529
530
    /**
531
     * Gets as valueAnnotation
532
     *
533
     * @return \MetadataV3\edm\TValueAnnotationType[]
534
     */
535
    public function getValueAnnotation()
536
    {
537
        return $this->valueAnnotation;
538
    }
539
540
    /**
541
     * Sets a new valueAnnotation
542
     *
543
     * @param \MetadataV3\edm\TValueAnnotationType[] $valueAnnotation
544
     * @return self
545
     */
546
    public function setValueAnnotation(array $valueAnnotation)
547
    {
548
        $this->valueAnnotation = $valueAnnotation;
549
        return $this;
550
    }
551
552
    /**
553
     * Adds as typeAnnotation
554
     *
555
     * @return self
556
     * @param \MetadataV3\edm\TTypeAnnotationType $typeAnnotation
557
     */
558
    public function addToTypeAnnotation(\MetadataV3\edm\TTypeAnnotationType $typeAnnotation)
559
    {
560
        $this->typeAnnotation[] = $typeAnnotation;
561
        return $this;
562
    }
563
564
    /**
565
     * isset typeAnnotation
566
     *
567
     * @param scalar $index
568
     * @return boolean
569
     */
570
    public function issetTypeAnnotation($index)
571
    {
572
        return isset($this->typeAnnotation[$index]);
573
    }
574
575
    /**
576
     * unset typeAnnotation
577
     *
578
     * @param scalar $index
579
     * @return void
580
     */
581
    public function unsetTypeAnnotation($index)
582
    {
583
        unset($this->typeAnnotation[$index]);
584
    }
585
586
    /**
587
     * Gets as typeAnnotation
588
     *
589
     * @return \MetadataV3\edm\TTypeAnnotationType[]
590
     */
591
    public function getTypeAnnotation()
592
    {
593
        return $this->typeAnnotation;
594
    }
595
596
    /**
597
     * Sets a new typeAnnotation
598
     *
599
     * @param \MetadataV3\edm\TTypeAnnotationType[] $typeAnnotation
600
     * @return self
601
     */
602
    public function setTypeAnnotation(array $typeAnnotation)
603
    {
604
        $this->typeAnnotation = $typeAnnotation;
605
        return $this;
606
    }
607
}
608