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

TParameterType   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 192
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 14
lcom 0
cbo 0
dl 192
loc 192
rs 10
c 0
b 0
f 0

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 4 4 1
A setName() 5 5 1
A getType() 4 4 1
A setType() 5 5 1
A getMode() 4 4 1
A setMode() 5 5 1
A getMaxLength() 4 4 1
A setMaxLength() 5 5 1
A getPrecision() 4 4 1
A setPrecision() 5 5 1
A getScale() 4 4 1
A setScale() 5 5 1
A getDocumentation() 4 4 1
A setDocumentation() 5 5 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV2\edm\ssdl;
4
5
/**
6
 * Class representing TParameterType
7
 *
8
 *
9
 * XSD Type: TParameter
10
 */
11 View Code Duplication
class TParameterType
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 string $mode
26
     */
27
    private $mode = null;
28
29
    /**
30
     * @property string $maxLength
31
     */
32
    private $maxLength = null;
33
34
    /**
35
     * @property integer $precision
36
     */
37
    private $precision = null;
38
39
    /**
40
     * @property integer $scale
41
     */
42
    private $scale = null;
43
44
    /**
45
     * @property \MetadataV2\edm\ssdl\TDocumentationType $documentation
46
     */
47
    private $documentation = null;
48
49
    /**
50
     * Gets as name
51
     *
52
     * @return string
53
     */
54
    public function getName()
55
    {
56
        return $this->name;
57
    }
58
59
    /**
60
     * Sets a new name
61
     *
62
     * @param string $name
63
     * @return self
64
     */
65
    public function setName($name)
66
    {
67
        $this->name = $name;
68
        return $this;
69
    }
70
71
    /**
72
     * Gets as type
73
     *
74
     * @return string
75
     */
76
    public function getType()
77
    {
78
        return $this->type;
79
    }
80
81
    /**
82
     * Sets a new type
83
     *
84
     * @param string $type
85
     * @return self
86
     */
87
    public function setType($type)
88
    {
89
        $this->type = $type;
90
        return $this;
91
    }
92
93
    /**
94
     * Gets as mode
95
     *
96
     * @return string
97
     */
98
    public function getMode()
99
    {
100
        return $this->mode;
101
    }
102
103
    /**
104
     * Sets a new mode
105
     *
106
     * @param string $mode
107
     * @return self
108
     */
109
    public function setMode($mode)
110
    {
111
        $this->mode = $mode;
112
        return $this;
113
    }
114
115
    /**
116
     * Gets as maxLength
117
     *
118
     * @return string
119
     */
120
    public function getMaxLength()
121
    {
122
        return $this->maxLength;
123
    }
124
125
    /**
126
     * Sets a new maxLength
127
     *
128
     * @param string $maxLength
129
     * @return self
130
     */
131
    public function setMaxLength($maxLength)
132
    {
133
        $this->maxLength = $maxLength;
134
        return $this;
135
    }
136
137
    /**
138
     * Gets as precision
139
     *
140
     * @return integer
141
     */
142
    public function getPrecision()
143
    {
144
        return $this->precision;
145
    }
146
147
    /**
148
     * Sets a new precision
149
     *
150
     * @param integer $precision
151
     * @return self
152
     */
153
    public function setPrecision($precision)
154
    {
155
        $this->precision = $precision;
156
        return $this;
157
    }
158
159
    /**
160
     * Gets as scale
161
     *
162
     * @return integer
163
     */
164
    public function getScale()
165
    {
166
        return $this->scale;
167
    }
168
169
    /**
170
     * Sets a new scale
171
     *
172
     * @param integer $scale
173
     * @return self
174
     */
175
    public function setScale($scale)
176
    {
177
        $this->scale = $scale;
178
        return $this;
179
    }
180
181
    /**
182
     * Gets as documentation
183
     *
184
     * @return \MetadataV2\edm\ssdl\TDocumentationType
185
     */
186
    public function getDocumentation()
187
    {
188
        return $this->documentation;
189
    }
190
191
    /**
192
     * Sets a new documentation
193
     *
194
     * @param \MetadataV2\edm\ssdl\TDocumentationType $documentation
195
     * @return self
196
     */
197
    public function setDocumentation(\MetadataV2\edm\ssdl\TDocumentationType $documentation)
198
    {
199
        $this->documentation = $documentation;
200
        return $this;
201
    }
202
}
203