DescribeDataCategoryMappingResult::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 9
c 1
b 0
f 0
nc 1
nop 9
dl 0
loc 11
rs 9.9666

How to fix   Many Parameters   

Many Parameters

Methods with many parameters are not only hard to understand, but their parameters also often become inconsistent when you need more, or different data.

There are several approaches to avoid long parameter lists:

1
<?php
2
3
namespace SForce\Wsdl;
4
5
class DescribeDataCategoryMappingResult
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $dataCategoryGroupId = null;
11
12
    /**
13
     * @var string
14
     */
15
    protected $dataCategoryGroupLabel = null;
16
17
    /**
18
     * @var string
19
     */
20
    protected $dataCategoryGroupName = null;
21
22
    /**
23
     * @var string
24
     */
25
    protected $dataCategoryId = null;
26
27
    /**
28
     * @var string
29
     */
30
    protected $dataCategoryLabel = null;
31
32
    /**
33
     * @var string
34
     */
35
    protected $dataCategoryName = null;
36
37
    /**
38
     * @var string
39
     */
40
    protected $id = null;
41
42
    /**
43
     * @var string
44
     */
45
    protected $mappedEntity = null;
46
47
    /**
48
     * @var string
49
     */
50
    protected $mappedField = null;
51
52
    /**
53
     * @param string $dataCategoryGroupId
54
     * @param string $dataCategoryGroupLabel
55
     * @param string $dataCategoryGroupName
56
     * @param string $dataCategoryId
57
     * @param string $dataCategoryLabel
58
     * @param string $dataCategoryName
59
     * @param string $id
60
     * @param string $mappedEntity
61
     * @param string $mappedField
62
     */
63
    public function __construct($dataCategoryGroupId = null, $dataCategoryGroupLabel = null, $dataCategoryGroupName = null, $dataCategoryId = null, $dataCategoryLabel = null, $dataCategoryName = null, $id = null, $mappedEntity = null, $mappedField = null)
64
    {
65
        $this->dataCategoryGroupId = $dataCategoryGroupId;
66
        $this->dataCategoryGroupLabel = $dataCategoryGroupLabel;
67
        $this->dataCategoryGroupName = $dataCategoryGroupName;
68
        $this->dataCategoryId = $dataCategoryId;
69
        $this->dataCategoryLabel = $dataCategoryLabel;
70
        $this->dataCategoryName = $dataCategoryName;
71
        $this->id = $id;
72
        $this->mappedEntity = $mappedEntity;
73
        $this->mappedField = $mappedField;
74
    }
75
76
    /**
77
     * @return string
78
     */
79
    public function getDataCategoryGroupId()
80
    {
81
        return $this->dataCategoryGroupId;
82
    }
83
84
    /**
85
     * @param string $dataCategoryGroupId
86
     * @return \SForce\Wsdl\DescribeDataCategoryMappingResult
87
     */
88
    public function setDataCategoryGroupId($dataCategoryGroupId)
89
    {
90
        $this->dataCategoryGroupId = $dataCategoryGroupId;
91
        return $this;
92
    }
93
94
    /**
95
     * @return string
96
     */
97
    public function getDataCategoryGroupLabel()
98
    {
99
        return $this->dataCategoryGroupLabel;
100
    }
101
102
    /**
103
     * @param string $dataCategoryGroupLabel
104
     * @return \SForce\Wsdl\DescribeDataCategoryMappingResult
105
     */
106
    public function setDataCategoryGroupLabel($dataCategoryGroupLabel)
107
    {
108
        $this->dataCategoryGroupLabel = $dataCategoryGroupLabel;
109
        return $this;
110
    }
111
112
    /**
113
     * @return string
114
     */
115
    public function getDataCategoryGroupName()
116
    {
117
        return $this->dataCategoryGroupName;
118
    }
119
120
    /**
121
     * @param string $dataCategoryGroupName
122
     * @return \SForce\Wsdl\DescribeDataCategoryMappingResult
123
     */
124
    public function setDataCategoryGroupName($dataCategoryGroupName)
125
    {
126
        $this->dataCategoryGroupName = $dataCategoryGroupName;
127
        return $this;
128
    }
129
130
    /**
131
     * @return string
132
     */
133
    public function getDataCategoryId()
134
    {
135
        return $this->dataCategoryId;
136
    }
137
138
    /**
139
     * @param string $dataCategoryId
140
     * @return \SForce\Wsdl\DescribeDataCategoryMappingResult
141
     */
142
    public function setDataCategoryId($dataCategoryId)
143
    {
144
        $this->dataCategoryId = $dataCategoryId;
145
        return $this;
146
    }
147
148
    /**
149
     * @return string
150
     */
151
    public function getDataCategoryLabel()
152
    {
153
        return $this->dataCategoryLabel;
154
    }
155
156
    /**
157
     * @param string $dataCategoryLabel
158
     * @return \SForce\Wsdl\DescribeDataCategoryMappingResult
159
     */
160
    public function setDataCategoryLabel($dataCategoryLabel)
161
    {
162
        $this->dataCategoryLabel = $dataCategoryLabel;
163
        return $this;
164
    }
165
166
    /**
167
     * @return string
168
     */
169
    public function getDataCategoryName()
170
    {
171
        return $this->dataCategoryName;
172
    }
173
174
    /**
175
     * @param string $dataCategoryName
176
     * @return \SForce\Wsdl\DescribeDataCategoryMappingResult
177
     */
178
    public function setDataCategoryName($dataCategoryName)
179
    {
180
        $this->dataCategoryName = $dataCategoryName;
181
        return $this;
182
    }
183
184
    /**
185
     * @return string
186
     */
187
    public function getId()
188
    {
189
        return $this->id;
190
    }
191
192
    /**
193
     * @param string $id
194
     * @return \SForce\Wsdl\DescribeDataCategoryMappingResult
195
     */
196
    public function setId($id)
197
    {
198
        $this->id = $id;
199
        return $this;
200
    }
201
202
    /**
203
     * @return string
204
     */
205
    public function getMappedEntity()
206
    {
207
        return $this->mappedEntity;
208
    }
209
210
    /**
211
     * @param string $mappedEntity
212
     * @return \SForce\Wsdl\DescribeDataCategoryMappingResult
213
     */
214
    public function setMappedEntity($mappedEntity)
215
    {
216
        $this->mappedEntity = $mappedEntity;
217
        return $this;
218
    }
219
220
    /**
221
     * @return string
222
     */
223
    public function getMappedField()
224
    {
225
        return $this->mappedField;
226
    }
227
228
    /**
229
     * @param string $mappedField
230
     * @return \SForce\Wsdl\DescribeDataCategoryMappingResult
231
     */
232
    public function setMappedField($mappedField)
233
    {
234
        $this->mappedField = $mappedField;
235
        return $this;
236
    }
237
}
238