Organization::getInvited()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Trello\Model;
4
5
/**
6
 * @codeCoverageIgnore
7
 */
8
class Organization extends AbstractObject implements OrganizationInterface
9
{
10
    protected $apiName = 'organization';
11
12
    protected $loadParams = array(
13
        'fields' => 'all',
14
        'members' => 'all',
15
        'membersInvited' => 'all',
16
    );
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function setName($name)
22
    {
23
        $this->data['name'] = $name;
24
25
        return $this;
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getName()
32
    {
33
        return $this->data['name'];
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function setDisplayName($displayName)
40
    {
41
        $this->data['displayName'] = $displayName;
42
43
        return $this;
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     */
49
    public function getDisplayName()
50
    {
51
        return $this->data['displayName'];
52
    }
53
54
    /**
55
     * {@inheritdoc}
56
     */
57
    public function setDescription($desc)
58
    {
59
        $this->data['desc'] = $desc;
60
61
        return $this;
62
    }
63
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function getDesciption()
68
    {
69
        return $this->data['desc'];
70
    }
71
72
    /**
73
     * {@inheritdoc}
74
     */
75
    public function setDescriptionData($descData)
76
    {
77
        $this->data['descData'] = $descData;
78
79
        return $this;
80
    }
81
82
    /**
83
     * {@inheritdoc}
84
     */
85
    public function getDescriptionData()
86
    {
87
        return $this->data['descData'];
88
    }
89
90
    /**
91
     * {@inheritdoc}
92
     */
93
    public function setBoardIds(array $boardIds)
94
    {
95
        $this->data['idBoards'] = $boardIds;
96
97
        return $this;
98
    }
99
100
    /**
101
     * {@inheritdoc}
102
     */
103
    public function getBoardIds()
104
    {
105
        return $this->data['idBoards'];
106
    }
107
108
    /**
109
     * {@inheritdoc}
110
     */
111 View Code Duplication
    public function getBoards()
0 ignored issues
show
Duplication introduced by
This method 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...
112
    {
113
        $boards = array();
114
115
        foreach ($this->data['idBoards'] as $boardId) {
116
            $boards[] = new Board($this->client, $boardId);
117
        }
118
119
        return $boards;
120
    }
121
122
    /**
123
     * {@inheritdoc}
124
     */
125
    public function setInvited(array $invited)
126
    {
127
        $this->data['invited'] = $invited;
128
129
        return $this;
130
    }
131
132
    /**
133
     * {@inheritdoc}
134
     */
135
    public function getInvited()
136
    {
137
        return $this->data['invited'];
138
    }
139
140
    /**
141
     * {@inheritdoc}
142
     */
143
    public function setInvitations(array $invitations)
144
    {
145
        $this->data['invitations'] = $invitations;
146
147
        return $this;
148
    }
149
150
    /**
151
     * {@inheritdoc}
152
     */
153
    public function getInvitations()
154
    {
155
        return $this->data['invitations'];
156
    }
157
158
    /**
159
     * {@inheritdoc}
160
     */
161
    public function getMemberships()
162
    {
163
        return $this->data['memberships'];
164
    }
165
166
    /**
167
     * {@inheritdoc}
168
     */
169
    public function setPreferences(array $prefs)
170
    {
171
        $this->data['prefs'] = $prefs;
172
173
        return $this;
174
    }
175
176
    /**
177
     * {@inheritdoc}
178
     */
179
    public function getPreferences()
180
    {
181
        return $this->data['prefs'];
182
    }
183
184
    /**
185
     * {@inheritdoc}
186
     */
187
    public function setPowerUps(array $powerUps)
188
    {
189
        $this->data['powerUps'] = $powerUps;
190
191
        return $this;
192
    }
193
194
    /**
195
     * {@inheritdoc}
196
     */
197
    public function getPowerUps()
198
    {
199
        return $this->data['powerUps'];
200
    }
201
202
    /**
203
     * {@inheritdoc}
204
     */
205
    public function setProducts(array $products)
206
    {
207
        $this->data['products'] = $products;
208
209
        return $this;
210
    }
211
212
    /**
213
     * {@inheritdoc}
214
     */
215
    public function getProducts()
216
    {
217
        return $this->data['products'];
218
    }
219
220
    /**
221
     * {@inheritdoc}
222
     */
223
    public function getBillableMemberCount()
224
    {
225
        return $this->data['billableMemberCount'];
226
    }
227
228
    /**
229
     * {@inheritdoc}
230
     */
231
    public function setUrl($url)
232
    {
233
        $this->data['url'] = $url;
234
235
        return $this;
236
    }
237
238
    /**
239
     * {@inheritdoc}
240
     */
241
    public function getUrl()
242
    {
243
        return $this->data['url'];
244
    }
245
246
    /**
247
     * {@inheritdoc}
248
     */
249
    public function setWebsite($website)
250
    {
251
        $this->data['website'] = $website;
252
253
        return $this;
254
    }
255
256
    /**
257
     * {@inheritdoc}
258
     */
259
    public function getWebsite()
260
    {
261
        return $this->data['website'];
262
    }
263
264
    /**
265
     * {@inheritdoc}
266
     */
267
    public function setLogoHash($logoHash)
268
    {
269
        $this->data['logoHash'] = $logoHash;
270
271
        return $this;
272
    }
273
274
    /**
275
     * {@inheritdoc}
276
     */
277
    public function getLogoHash()
278
    {
279
        return $this->data['logoHash'];
280
    }
281
282
    /**
283
     * {@inheritdoc}
284
     */
285
    public function setPremiumFeatures(array $premiumFeatures)
286
    {
287
        $this->data['premiumFeatures'] = $premiumFeatures;
288
289
        return $this;
290
    }
291
292
    /**
293
     * {@inheritdoc}
294
     */
295
    public function getPremiumFeatures()
296
    {
297
        return $this->data['premiumFeatures'];
298
    }
299
}
300