RelatedList::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 5
dl 0
loc 7
rs 10
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class RelatedList
6
{
7
    /**
8
     * @var ShareAccessLevel
9
     */
10
    protected $accessLevelRequiredForCreate = null;
11
12
    /**
13
     * @var DescribeLayoutButton[]
14
     */
15
    protected $buttons = null;
16
17
    /**
18
     * @var RelatedListColumn[]
19
     */
20
    protected $columns = null;
21
22
    /**
23
     * @var boolean
24
     */
25
    protected $custom = null;
26
27
    /**
28
     * @var string
29
     */
30
    protected $field = null;
31
32
    /**
33
     * @var string
34
     */
35
    protected $label = null;
36
37
    /**
38
     * @var int
39
     */
40
    protected $limitRows = null;
41
42
    /**
43
     * @var string
44
     */
45
    protected $name = null;
46
47
    /**
48
     * @var string
49
     */
50
    protected $sobject = null;
51
52
    /**
53
     * @var RelatedListSort[]
54
     */
55
    protected $sort = null;
56
57
    /**
58
     * @param RelatedListColumn[] $columns
59
     * @param boolean $custom
60
     * @param string $label
61
     * @param int $limitRows
62
     * @param string $name
63
     */
64
    public function __construct(array $columns = null, $custom = null, $label = null, $limitRows = null, $name = null)
65
    {
66
        $this->columns = $columns;
67
        $this->custom = $custom;
68
        $this->label = $label;
69
        $this->limitRows = $limitRows;
70
        $this->name = $name;
71
    }
72
73
    /**
74
     * @return ShareAccessLevel
75
     */
76
    public function getAccessLevelRequiredForCreate()
77
    {
78
        return $this->accessLevelRequiredForCreate;
79
    }
80
81
    /**
82
     * @param ShareAccessLevel $accessLevelRequiredForCreate
83
     * @return \SForce\Wsdl\RelatedList
84
     */
85
    public function setAccessLevelRequiredForCreate($accessLevelRequiredForCreate)
86
    {
87
        $this->accessLevelRequiredForCreate = $accessLevelRequiredForCreate;
88
        return $this;
89
    }
90
91
    /**
92
     * @return DescribeLayoutButton[]
93
     */
94
    public function getButtons()
95
    {
96
        return $this->buttons;
97
    }
98
99
    /**
100
     * @param DescribeLayoutButton[] $buttons
101
     * @return \SForce\Wsdl\RelatedList
102
     */
103
    public function setButtons(array $buttons = null)
104
    {
105
        $this->buttons = $buttons;
106
        return $this;
107
    }
108
109
    /**
110
     * @return RelatedListColumn[]
111
     */
112
    public function getColumns()
113
    {
114
        return $this->columns;
115
    }
116
117
    /**
118
     * @param RelatedListColumn[] $columns
119
     * @return \SForce\Wsdl\RelatedList
120
     */
121
    public function setColumns(array $columns)
122
    {
123
        $this->columns = $columns;
124
        return $this;
125
    }
126
127
    /**
128
     * @return boolean
129
     */
130
    public function getCustom()
131
    {
132
        return $this->custom;
133
    }
134
135
    /**
136
     * @param boolean $custom
137
     * @return \SForce\Wsdl\RelatedList
138
     */
139
    public function setCustom($custom)
140
    {
141
        $this->custom = $custom;
142
        return $this;
143
    }
144
145
    /**
146
     * @return string
147
     */
148
    public function getField()
149
    {
150
        return $this->field;
151
    }
152
153
    /**
154
     * @param string $field
155
     * @return \SForce\Wsdl\RelatedList
156
     */
157
    public function setField($field)
158
    {
159
        $this->field = $field;
160
        return $this;
161
    }
162
163
    /**
164
     * @return string
165
     */
166
    public function getLabel()
167
    {
168
        return $this->label;
169
    }
170
171
    /**
172
     * @param string $label
173
     * @return \SForce\Wsdl\RelatedList
174
     */
175
    public function setLabel($label)
176
    {
177
        $this->label = $label;
178
        return $this;
179
    }
180
181
    /**
182
     * @return int
183
     */
184
    public function getLimitRows()
185
    {
186
        return $this->limitRows;
187
    }
188
189
    /**
190
     * @param int $limitRows
191
     * @return \SForce\Wsdl\RelatedList
192
     */
193
    public function setLimitRows($limitRows)
194
    {
195
        $this->limitRows = $limitRows;
196
        return $this;
197
    }
198
199
    /**
200
     * @return string
201
     */
202
    public function getName()
203
    {
204
        return $this->name;
205
    }
206
207
    /**
208
     * @param string $name
209
     * @return \SForce\Wsdl\RelatedList
210
     */
211
    public function setName($name)
212
    {
213
        $this->name = $name;
214
        return $this;
215
    }
216
217
    /**
218
     * @return string
219
     */
220
    public function getSobject()
221
    {
222
        return $this->sobject;
223
    }
224
225
    /**
226
     * @param string $sobject
227
     * @return \SForce\Wsdl\RelatedList
228
     */
229
    public function setSobject($sobject)
230
    {
231
        $this->sobject = $sobject;
232
        return $this;
233
    }
234
235
    /**
236
     * @return RelatedListSort[]
237
     */
238
    public function getSort()
239
    {
240
        return $this->sort;
241
    }
242
243
    /**
244
     * @param RelatedListSort[] $sort
245
     * @return \SForce\Wsdl\RelatedList
246
     */
247
    public function setSort(array $sort = null)
248
    {
249
        $this->sort = $sort;
250
        return $this;
251
    }
252
}
253