Completed
Push — master ( c48e94...0f8b60 )
by Zbigniew
02:47
created

CommentResourceModel::setAttachmentIds()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 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\Comment;
13
14
use JMS\Serializer\Annotation as SA;
15
use Zibios\WrikePhpJmsserializer\Model\AbstractModel;
16
use Zibios\WrikePhpJmsserializer\Model\ResourceModelInterface;
17
18
/**
19
 * Comment Resource Model.
20
 */
21
class CommentResourceModel extends AbstractModel implements ResourceModelInterface
22
{
23
    /**
24
     * Comment ID.
25
     *
26
     * Comment: Comment ID
27
     *
28
     * @SA\Type("string")
29
     * @SA\SerializedName("id")
30
     *
31
     * @var string|null
32
     */
33
    protected $id;
34
35
    /**
36
     * Author ID.
37
     *
38
     * Comment: Contact ID
39
     *
40
     * @SA\Type("string")
41
     * @SA\SerializedName("authorId")
42
     *
43
     * @var string|null
44
     */
45
    protected $authorId;
46
47
    /**
48
     * Comment text.
49
     *
50
     * @SA\Type("string")
51
     * @SA\SerializedName("text")
52
     *
53
     * @var string|null
54
     */
55
    protected $text;
56
57
    /**
58
     * Created date.
59
     *
60
     * Format: yyyy-MM-dd'T'HH:mm:ss'Z'
61
     *
62
     * @SA\Type("string")
63
     * @SA\SerializedName("createdDate")
64
     *
65
     * @var string|null
66
     */
67
    protected $createdDate;
68
69
    /**
70
     * Updated date.
71
     *
72
     * Format: yyyy-MM-dd'T'HH:mm:ss'Z'
73
     *
74
     * @SA\Type("string")
75
     * @SA\SerializedName("updatedDate")
76
     *
77
     * @var string|null
78
     */
79
    protected $updatedDate;
80
81
    /**
82
     * ID of related task. Only one of taskId/folderId fields is present.
83
     *
84
     * @SA\Type("string")
85
     * @SA\SerializedName("taskId")
86
     *
87
     * @var string|null
88
     */
89
    protected $taskId;
90
91
    /**
92
     * ID of related folder. Only one of taskId/folderId fields is present.
93
     *
94
     * @SA\Type("string")
95
     * @SA\SerializedName("folderId")
96
     *
97
     * @var string|null
98
     */
99
    protected $folderId;
100
101
    /**
102
     * Attachment ID list.
103
     *
104
     * @SA\Type("array<string>")
105
     * @SA\SerializedName("folderId")
106
     *
107
     * @var array|string[]|null
108
     */
109
    protected $attachmentIds;
110
111
    /**
112
     * @return null|string
113
     */
114 1
    public function getId()
115
    {
116 1
        return $this->id;
117
    }
118
119
    /**
120
     * @param null|string $id
121
     *
122
     * @return $this
123
     */
124 1
    public function setId($id)
125
    {
126 1
        $this->id = $id;
127
128 1
        return $this;
129
    }
130
131
    /**
132
     * @return null|string
133
     */
134 1
    public function getAuthorId()
135
    {
136 1
        return $this->authorId;
137
    }
138
139
    /**
140
     * @param null|string $authorId
141
     *
142
     * @return $this
143
     */
144 1
    public function setAuthorId($authorId)
145
    {
146 1
        $this->authorId = $authorId;
147
148 1
        return $this;
149
    }
150
151
    /**
152
     * @return null|string
153
     */
154 1
    public function getText()
155
    {
156 1
        return $this->text;
157
    }
158
159
    /**
160
     * @param null|string $text
161
     *
162
     * @return $this
163
     */
164 1
    public function setText($text)
165
    {
166 1
        $this->text = $text;
167
168 1
        return $this;
169
    }
170
171
    /**
172
     * @return string|null
173
     */
174 1
    public function getCreatedDate()
175
    {
176 1
        return $this->createdDate;
177
    }
178
179
    /**
180
     * @param string|null $createdDate
181
     *
182
     * @return $this
183
     */
184 1
    public function setCreatedDate($createdDate)
185
    {
186 1
        $this->createdDate = $createdDate;
187
188 1
        return $this;
189
    }
190
191
    /**
192
     * @return null|string
193
     */
194 1
    public function getUpdatedDate()
195
    {
196 1
        return $this->updatedDate;
197
    }
198
199
    /**
200
     * @param null|string $updatedDate
201
     *
202
     * @return $this
203
     */
204 1
    public function setUpdatedDate($updatedDate)
205
    {
206 1
        $this->updatedDate = $updatedDate;
207
208 1
        return $this;
209
    }
210
211
    /**
212
     * @return null|string
213
     */
214 1
    public function getTaskId()
215
    {
216 1
        return $this->taskId;
217
    }
218
219
    /**
220
     * @param null|string $taskId
221
     *
222
     * @return $this
223
     */
224 1
    public function setTaskId($taskId)
225
    {
226 1
        $this->taskId = $taskId;
227
228 1
        return $this;
229
    }
230
231
    /**
232
     * @return null|string
233
     */
234 1
    public function getFolderId()
235
    {
236 1
        return $this->folderId;
237
    }
238
239
    /**
240
     * @param null|string $folderId
241
     *
242
     * @return $this
243
     */
244 1
    public function setFolderId($folderId)
245
    {
246 1
        $this->folderId = $folderId;
247
248 1
        return $this;
249
    }
250
251
    /**
252
     * @return array|null|string[]
253
     */
254 1
    public function getAttachmentIds()
255
    {
256 1
        return $this->attachmentIds;
257
    }
258
259
    /**
260
     * @param array|null|string[] $attachmentIds
261
     *
262
     * @return $this
263
     */
264 1
    public function setAttachmentIds($attachmentIds)
265
    {
266 1
        $this->attachmentIds = $attachmentIds;
267
268 1
        return $this;
269
    }
270
}
271