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

TPropertyType::setScale()   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\MetadataV3\edm\ssdl;
4
5
/**
6
 * Class representing TPropertyType
7
 *
8
 *
9
 * XSD Type: TProperty
10
 */
11 View Code Duplication
class TPropertyType
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 string $sRID
66
     */
67
    private $sRID = null;
68
69
    /**
70
     * @property \MetadataV3\edm\ssdl\TDocumentationType $documentation
71
     */
72
    private $documentation = null;
73
74
    /**
75
     * Gets as name
76
     *
77
     * @return string
78
     */
79
    public function getName()
80
    {
81
        return $this->name;
82
    }
83
84
    /**
85
     * Sets a new name
86
     *
87
     * @param string $name
88
     * @return self
89
     */
90
    public function setName($name)
91
    {
92
        $this->name = $name;
93
        return $this;
94
    }
95
96
    /**
97
     * Gets as type
98
     *
99
     * @return string
100
     */
101
    public function getType()
102
    {
103
        return $this->type;
104
    }
105
106
    /**
107
     * Sets a new type
108
     *
109
     * @param string $type
110
     * @return self
111
     */
112
    public function setType($type)
113
    {
114
        $this->type = $type;
115
        return $this;
116
    }
117
118
    /**
119
     * Gets as nullable
120
     *
121
     * @return boolean
122
     */
123
    public function getNullable()
124
    {
125
        return $this->nullable;
126
    }
127
128
    /**
129
     * Sets a new nullable
130
     *
131
     * @param boolean $nullable
132
     * @return self
133
     */
134
    public function setNullable($nullable)
135
    {
136
        $this->nullable = $nullable;
137
        return $this;
138
    }
139
140
    /**
141
     * Gets as defaultValue
142
     *
143
     * @return string
144
     */
145
    public function getDefaultValue()
146
    {
147
        return $this->defaultValue;
148
    }
149
150
    /**
151
     * Sets a new defaultValue
152
     *
153
     * @param string $defaultValue
154
     * @return self
155
     */
156
    public function setDefaultValue($defaultValue)
157
    {
158
        $this->defaultValue = $defaultValue;
159
        return $this;
160
    }
161
162
    /**
163
     * Gets as maxLength
164
     *
165
     * @return string
166
     */
167
    public function getMaxLength()
168
    {
169
        return $this->maxLength;
170
    }
171
172
    /**
173
     * Sets a new maxLength
174
     *
175
     * @param string $maxLength
176
     * @return self
177
     */
178
    public function setMaxLength($maxLength)
179
    {
180
        $this->maxLength = $maxLength;
181
        return $this;
182
    }
183
184
    /**
185
     * Gets as fixedLength
186
     *
187
     * @return boolean
188
     */
189
    public function getFixedLength()
190
    {
191
        return $this->fixedLength;
192
    }
193
194
    /**
195
     * Sets a new fixedLength
196
     *
197
     * @param boolean $fixedLength
198
     * @return self
199
     */
200
    public function setFixedLength($fixedLength)
201
    {
202
        $this->fixedLength = $fixedLength;
203
        return $this;
204
    }
205
206
    /**
207
     * Gets as precision
208
     *
209
     * @return integer
210
     */
211
    public function getPrecision()
212
    {
213
        return $this->precision;
214
    }
215
216
    /**
217
     * Sets a new precision
218
     *
219
     * @param integer $precision
220
     * @return self
221
     */
222
    public function setPrecision($precision)
223
    {
224
        $this->precision = $precision;
225
        return $this;
226
    }
227
228
    /**
229
     * Gets as scale
230
     *
231
     * @return integer
232
     */
233
    public function getScale()
234
    {
235
        return $this->scale;
236
    }
237
238
    /**
239
     * Sets a new scale
240
     *
241
     * @param integer $scale
242
     * @return self
243
     */
244
    public function setScale($scale)
245
    {
246
        $this->scale = $scale;
247
        return $this;
248
    }
249
250
    /**
251
     * Gets as unicode
252
     *
253
     * @return boolean
254
     */
255
    public function getUnicode()
256
    {
257
        return $this->unicode;
258
    }
259
260
    /**
261
     * Sets a new unicode
262
     *
263
     * @param boolean $unicode
264
     * @return self
265
     */
266
    public function setUnicode($unicode)
267
    {
268
        $this->unicode = $unicode;
269
        return $this;
270
    }
271
272
    /**
273
     * Gets as collation
274
     *
275
     * @return string
276
     */
277
    public function getCollation()
278
    {
279
        return $this->collation;
280
    }
281
282
    /**
283
     * Sets a new collation
284
     *
285
     * @param string $collation
286
     * @return self
287
     */
288
    public function setCollation($collation)
289
    {
290
        $this->collation = $collation;
291
        return $this;
292
    }
293
294
    /**
295
     * Gets as sRID
296
     *
297
     * @return string
298
     */
299
    public function getSRID()
300
    {
301
        return $this->sRID;
302
    }
303
304
    /**
305
     * Sets a new sRID
306
     *
307
     * @param string $sRID
308
     * @return self
309
     */
310
    public function setSRID($sRID)
311
    {
312
        $this->sRID = $sRID;
313
        return $this;
314
    }
315
316
    /**
317
     * Gets as documentation
318
     *
319
     * @return \MetadataV3\edm\ssdl\TDocumentationType
320
     */
321
    public function getDocumentation()
322
    {
323
        return $this->documentation;
324
    }
325
326
    /**
327
     * Sets a new documentation
328
     *
329
     * @param \MetadataV3\edm\ssdl\TDocumentationType $documentation
330
     * @return self
331
     */
332
    public function setDocumentation(\MetadataV3\edm\ssdl\TDocumentationType $documentation)
333
    {
334
        $this->documentation = $documentation;
335
        return $this;
336
    }
337
}
338