InvitationResourceModel   A
last analyzed

Complexity

Total Complexity 22

Size/Duplication

Total Lines 352
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 22
lcom 0
cbo 1
dl 0
loc 352
ccs 55
cts 55
cp 1
rs 10
c 0
b 0
f 0

22 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getAccountId() 0 4 1
A setAccountId() 0 6 1
A getFirstName() 0 4 1
A setFirstName() 0 6 1
A getLastName() 0 4 1
A setLastName() 0 6 1
A getEmail() 0 4 1
A setEmail() 0 6 1
A getStatus() 0 4 1
A setStatus() 0 6 1
A getInviterUserId() 0 4 1
A setInviterUserId() 0 6 1
A getInvitationDate() 0 4 1
A setInvitationDate() 0 6 1
A getResolvedDate() 0 4 1
A setResolvedDate() 0 6 1
A getRole() 0 4 1
A setRole() 0 6 1
A getExternal() 0 4 1
A setExternal() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the zibios/wrike-php-jmsserializer package.
5
 *
6
 * (c) Zbigniew Ślązak
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zibios\WrikePhpJmsserializer\Model\Invitation;
13
14
use JMS\Serializer\Annotation as SA;
15
use Zibios\WrikePhpJmsserializer\Model\AbstractModel;
16
use Zibios\WrikePhpJmsserializer\Model\ResourceModelInterface;
17
18
/**
19
 * Invitation Resource Model.
20
 */
21
class InvitationResourceModel extends AbstractModel implements ResourceModelInterface
22
{
23
    /**
24
     * Invitation ID.
25
     *
26
     * Comment: Invitation ID
27
     *
28
     * @SA\Type("string")
29
     * @SA\SerializedName("id")
30
     *
31
     * @var string|null
32
     */
33
    protected $id;
34
35
    /**
36
     * Account ID.
37
     *
38
     * Comment: Account ID
39
     *
40
     * @SA\Type("string")
41
     * @SA\SerializedName("accountId")
42
     *
43
     * @var string|null
44
     */
45
    protected $accountId;
46
47
    /**
48
     * First name.
49
     *
50
     * @SA\Type("string")
51
     * @SA\SerializedName("firstName")
52
     *
53
     * @var string|null
54
     */
55
    protected $firstName;
56
57
    /**
58
     * Last name.
59
     *
60
     * @SA\Type("string")
61
     * @SA\SerializedName("lastName")
62
     *
63
     * @var string|null
64
     */
65
    protected $lastName;
66
67
    /**
68
     * Invitation Title.
69
     *
70
     * @SA\Type("string")
71
     * @SA\SerializedName("email")
72
     *
73
     * @var string|null
74
     */
75
    protected $email;
76
77
    /**
78
     * Status.
79
     *
80
     * Invitation status
81
     * Enum: Pending, Accepted, Declined, Cancelled
82
     *
83
     * @see \Zibios\WrikePhpLibrary\Enum\InvitationStatusEnum
84
     *
85
     * @SA\Type("string")
86
     * @SA\SerializedName("status")
87
     *
88
     * @var string|null
89
     */
90
    protected $status;
91
92
    /**
93
     * Inviter Contact ID.
94
     *
95
     * Comment: Contact ID
96
     *
97
     * @SA\Type("string")
98
     * @SA\SerializedName("inviterUserId")
99
     *
100
     * @var string|null
101
     */
102
    protected $inviterUserId;
103
104
    /**
105
     * Date when invitation was created.
106
     *
107
     * Format: yyyy-MM-dd'T'HH:mm:ss'Z'
108
     *
109
     * @SA\Type("string")
110
     * @SA\SerializedName("invitationDate")
111
     *
112
     * @var string|null
113
     */
114
    protected $invitationDate;
115
116
    /**
117
     * Date when the invitation was resolved.
118
     *
119
     * Format: yyyy-MM-dd'T'HH:mm:ss'Z'
120
     * Comment: Optional
121
     *
122
     * @SA\Type("string")
123
     * @SA\SerializedName("resolvedDate")
124
     *
125
     * @var string|null
126
     */
127
    protected $resolvedDate;
128
129
    /**
130
     * Invited user role.
131
     *
132
     * Enum: User, Collaborator
133
     *
134
     * @see \Zibios\WrikePhpLibrary\Enum\UserRoleEnum
135
     *
136
     * @SA\Type("string")
137
     * @SA\SerializedName("role")
138
     *
139
     * @var string|null
140
     */
141
    protected $role;
142
143
    /**
144
     * Is user external.
145
     *
146
     * @SA\Type("boolean")
147
     * @SA\SerializedName("external")
148
     *
149
     * @var bool|null
150
     */
151
    protected $external;
152
153
    /**
154
     * @return null|string
155
     */
156 1
    public function getId()
157
    {
158 1
        return $this->id;
159
    }
160
161
    /**
162
     * @param null|string $id
163
     *
164
     * @return $this
165
     */
166 1
    public function setId($id)
167
    {
168 1
        $this->id = $id;
169
170 1
        return $this;
171
    }
172
173
    /**
174
     * @return null|string
175
     */
176 1
    public function getAccountId()
177
    {
178 1
        return $this->accountId;
179
    }
180
181
    /**
182
     * @param null|string $accountId
183
     *
184
     * @return $this
185
     */
186 1
    public function setAccountId($accountId)
187
    {
188 1
        $this->accountId = $accountId;
189
190 1
        return $this;
191
    }
192
193
    /**
194
     * @return null|string
195
     */
196 1
    public function getFirstName()
197
    {
198 1
        return $this->firstName;
199
    }
200
201
    /**
202
     * @param null|string $firstName
203
     *
204
     * @return $this
205
     */
206 1
    public function setFirstName($firstName)
207
    {
208 1
        $this->firstName = $firstName;
209
210 1
        return $this;
211
    }
212
213
    /**
214
     * @return null|string
215
     */
216 1
    public function getLastName()
217
    {
218 1
        return $this->lastName;
219
    }
220
221
    /**
222
     * @param null|string $lastName
223
     *
224
     * @return $this
225
     */
226 1
    public function setLastName($lastName)
227
    {
228 1
        $this->lastName = $lastName;
229
230 1
        return $this;
231
    }
232
233
    /**
234
     * @return null|string
235
     */
236 1
    public function getEmail()
237
    {
238 1
        return $this->email;
239
    }
240
241
    /**
242
     * @param null|string $email
243
     *
244
     * @return $this
245
     */
246 1
    public function setEmail($email)
247
    {
248 1
        $this->email = $email;
249
250 1
        return $this;
251
    }
252
253
    /**
254
     * @return null|string
255
     */
256 1
    public function getStatus()
257
    {
258 1
        return $this->status;
259
    }
260
261
    /**
262
     * @param null|string $status
263
     *
264
     * @return $this
265
     */
266 1
    public function setStatus($status)
267
    {
268 1
        $this->status = $status;
269
270 1
        return $this;
271
    }
272
273
    /**
274
     * @return null|string
275
     */
276 1
    public function getInviterUserId()
277
    {
278 1
        return $this->inviterUserId;
279
    }
280
281
    /**
282
     * @param null|string $inviterUserId
283
     *
284
     * @return $this
285
     */
286 1
    public function setInviterUserId($inviterUserId)
287
    {
288 1
        $this->inviterUserId = $inviterUserId;
289
290 1
        return $this;
291
    }
292
293
    /**
294
     * @return null|string
295
     */
296 1
    public function getInvitationDate()
297
    {
298 1
        return $this->invitationDate;
299
    }
300
301
    /**
302
     * @param null|string|string $invitationDate
303
     *
304
     * @return $this
305
     */
306 1
    public function setInvitationDate($invitationDate)
307
    {
308 1
        $this->invitationDate = $invitationDate;
309
310 1
        return $this;
311
    }
312
313
    /**
314
     * @return null|string
315
     */
316 1
    public function getResolvedDate()
317
    {
318 1
        return $this->resolvedDate;
319
    }
320
321
    /**
322
     * @param null|string|string $resolvedDate
323
     *
324
     * @return $this
325
     */
326 1
    public function setResolvedDate($resolvedDate)
327
    {
328 1
        $this->resolvedDate = $resolvedDate;
329
330 1
        return $this;
331
    }
332
333
    /**
334
     * @return null|string
335
     */
336 1
    public function getRole()
337
    {
338 1
        return $this->role;
339
    }
340
341
    /**
342
     * @param null|string $role
343
     *
344
     * @return $this
345
     */
346 1
    public function setRole($role)
347
    {
348 1
        $this->role = $role;
349
350 1
        return $this;
351
    }
352
353
    /**
354
     * @return bool|null
355
     */
356 1
    public function getExternal()
357
    {
358 1
        return $this->external;
359
    }
360
361
    /**
362
     * @param bool|null $external
363
     *
364
     * @return $this
365
     */
366 1
    public function setExternal($external)
367
    {
368 1
        $this->external = $external;
369
370 1
        return $this;
371
    }
372
}
373