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

TTypeDefinitionType::setSRID()   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\MetadataV4\edm;
4
5
/**
6
 * Class representing TTypeDefinitionType
7
 *
8
 *
9
 * XSD Type: TTypeDefinition
10
 */
11 View Code Duplication
class TTypeDefinitionType
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 $underlyingType
21
     */
22
    private $underlyingType = null;
23
24
    /**
25
     * @property string $maxLength
26
     */
27
    private $maxLength = null;
28
29
    /**
30
     * @property integer $precision
31
     */
32
    private $precision = null;
33
34
    /**
35
     * @property string $scale
36
     */
37
    private $scale = null;
38
39
    /**
40
     * @property string $sRID
41
     */
42
    private $sRID = null;
43
44
    /**
45
     * @property boolean $unicode
46
     */
47
    private $unicode = null;
48
49
    /**
50
     * @property \MetadataV4\edm\Annotation[] $annotation
51
     */
52
    private $annotation = array(
53
        
54
    );
55
56
    /**
57
     * Gets as name
58
     *
59
     * @return string
60
     */
61
    public function getName()
62
    {
63
        return $this->name;
64
    }
65
66
    /**
67
     * Sets a new name
68
     *
69
     * @param string $name
70
     * @return self
71
     */
72
    public function setName($name)
73
    {
74
        $this->name = $name;
75
        return $this;
76
    }
77
78
    /**
79
     * Gets as underlyingType
80
     *
81
     * @return string
82
     */
83
    public function getUnderlyingType()
84
    {
85
        return $this->underlyingType;
86
    }
87
88
    /**
89
     * Sets a new underlyingType
90
     *
91
     * @param string $underlyingType
92
     * @return self
93
     */
94
    public function setUnderlyingType($underlyingType)
95
    {
96
        $this->underlyingType = $underlyingType;
97
        return $this;
98
    }
99
100
    /**
101
     * Gets as maxLength
102
     *
103
     * @return string
104
     */
105
    public function getMaxLength()
106
    {
107
        return $this->maxLength;
108
    }
109
110
    /**
111
     * Sets a new maxLength
112
     *
113
     * @param string $maxLength
114
     * @return self
115
     */
116
    public function setMaxLength($maxLength)
117
    {
118
        $this->maxLength = $maxLength;
119
        return $this;
120
    }
121
122
    /**
123
     * Gets as precision
124
     *
125
     * @return integer
126
     */
127
    public function getPrecision()
128
    {
129
        return $this->precision;
130
    }
131
132
    /**
133
     * Sets a new precision
134
     *
135
     * @param integer $precision
136
     * @return self
137
     */
138
    public function setPrecision($precision)
139
    {
140
        $this->precision = $precision;
141
        return $this;
142
    }
143
144
    /**
145
     * Gets as scale
146
     *
147
     * @return string
148
     */
149
    public function getScale()
150
    {
151
        return $this->scale;
152
    }
153
154
    /**
155
     * Sets a new scale
156
     *
157
     * @param string $scale
158
     * @return self
159
     */
160
    public function setScale($scale)
161
    {
162
        $this->scale = $scale;
163
        return $this;
164
    }
165
166
    /**
167
     * Gets as sRID
168
     *
169
     * @return string
170
     */
171
    public function getSRID()
172
    {
173
        return $this->sRID;
174
    }
175
176
    /**
177
     * Sets a new sRID
178
     *
179
     * @param string $sRID
180
     * @return self
181
     */
182
    public function setSRID($sRID)
183
    {
184
        $this->sRID = $sRID;
185
        return $this;
186
    }
187
188
    /**
189
     * Gets as unicode
190
     *
191
     * @return boolean
192
     */
193
    public function getUnicode()
194
    {
195
        return $this->unicode;
196
    }
197
198
    /**
199
     * Sets a new unicode
200
     *
201
     * @param boolean $unicode
202
     * @return self
203
     */
204
    public function setUnicode($unicode)
205
    {
206
        $this->unicode = $unicode;
207
        return $this;
208
    }
209
210
    /**
211
     * Adds as annotation
212
     *
213
     * @return self
214
     * @param \MetadataV4\edm\Annotation $annotation
215
     */
216
    public function addToAnnotation(\MetadataV4\edm\Annotation $annotation)
217
    {
218
        $this->annotation[] = $annotation;
219
        return $this;
220
    }
221
222
    /**
223
     * isset annotation
224
     *
225
     * @param scalar $index
226
     * @return boolean
227
     */
228
    public function issetAnnotation($index)
229
    {
230
        return isset($this->annotation[$index]);
231
    }
232
233
    /**
234
     * unset annotation
235
     *
236
     * @param scalar $index
237
     * @return void
238
     */
239
    public function unsetAnnotation($index)
240
    {
241
        unset($this->annotation[$index]);
242
    }
243
244
    /**
245
     * Gets as annotation
246
     *
247
     * @return \MetadataV4\edm\Annotation[]
248
     */
249
    public function getAnnotation()
250
    {
251
        return $this->annotation;
252
    }
253
254
    /**
255
     * Sets a new annotation
256
     *
257
     * @param \MetadataV4\edm\Annotation[] $annotation
258
     * @return self
259
     */
260
    public function setAnnotation(array $annotation)
261
    {
262
        $this->annotation = $annotation;
263
        return $this;
264
    }
265
}
266