1 | <?php |
||
19 | class AttachmentResourceModel implements ResourceModelInterface |
||
20 | { |
||
21 | /** |
||
22 | * Attachment ID. |
||
23 | * |
||
24 | * Attachment: Attachment ID |
||
25 | * |
||
26 | * @SA\Type("string") |
||
27 | * @SA\SerializedName("id") |
||
28 | * |
||
29 | * @var string|null |
||
30 | */ |
||
31 | protected $id; |
||
32 | |||
33 | /** |
||
34 | * ID of user who uploaded the attachment. |
||
35 | * |
||
36 | * Comment: Contact ID |
||
37 | * |
||
38 | * @SA\Type("string") |
||
39 | * @SA\SerializedName("authorId") |
||
40 | * |
||
41 | * @var string|null |
||
42 | */ |
||
43 | protected $authorId; |
||
44 | |||
45 | /** |
||
46 | * Attachment filename. |
||
47 | * |
||
48 | * @SA\Type("string") |
||
49 | * @SA\SerializedName("name") |
||
50 | * |
||
51 | * @var string|null |
||
52 | */ |
||
53 | protected $name; |
||
54 | |||
55 | /** |
||
56 | * Upload date. |
||
57 | * |
||
58 | * Format: yyyy-MM-dd'T'HH:mm:ss'Z' |
||
59 | * |
||
60 | * @SA\Type("DateTime<'Y-m-d\TH:i:s\Z'>") |
||
61 | * @SA\SerializedName("createdDate") |
||
62 | * |
||
63 | * @var \DateTime|null |
||
64 | */ |
||
65 | protected $createdDate; |
||
66 | |||
67 | /** |
||
68 | * Attachment version. |
||
69 | * |
||
70 | * @SA\Type("integer") |
||
71 | * @SA\SerializedName("version") |
||
72 | * |
||
73 | * @var int|null |
||
74 | */ |
||
75 | protected $version; |
||
76 | |||
77 | /** |
||
78 | * Attachment type. |
||
79 | * |
||
80 | * Attachment Type, Enum: Wrike, Google, DropBox, Box, OneDrive |
||
81 | * |
||
82 | * @see \Zibios\WrikePhpLibrary\Enum\AttachmentTypeEnum |
||
83 | * |
||
84 | * @SA\Type("string") |
||
85 | * @SA\SerializedName("type") |
||
86 | * |
||
87 | * @var string|null |
||
88 | */ |
||
89 | protected $type; |
||
90 | |||
91 | /** |
||
92 | * Content type. |
||
93 | * |
||
94 | * @SA\Type("string") |
||
95 | * @SA\SerializedName("contentType") |
||
96 | * |
||
97 | * @var string|null |
||
98 | */ |
||
99 | protected $contentType; |
||
100 | |||
101 | /** |
||
102 | * Size for Wrike Attachments. For external attachments, size is equal to -1. |
||
103 | * |
||
104 | * @SA\Type("integer") |
||
105 | * @SA\SerializedName("size") |
||
106 | * |
||
107 | * @var int|null |
||
108 | */ |
||
109 | protected $size; |
||
110 | |||
111 | /** |
||
112 | * ID of related task. Only one of taskId/folderId fields is present. |
||
113 | * |
||
114 | * @SA\Type("string") |
||
115 | * @SA\SerializedName("taskId") |
||
116 | * |
||
117 | * @var string|null |
||
118 | */ |
||
119 | protected $taskId; |
||
120 | |||
121 | /** |
||
122 | * ID of related folder. Only one of taskId/folderId fields is present. |
||
123 | * |
||
124 | * @SA\Type("string") |
||
125 | * @SA\SerializedName("folderId") |
||
126 | * |
||
127 | * @var string|null |
||
128 | */ |
||
129 | protected $folderId; |
||
130 | |||
131 | /** |
||
132 | * ID of related comment. |
||
133 | * |
||
134 | * @SA\Type("string") |
||
135 | * @SA\SerializedName("commentId") |
||
136 | * |
||
137 | * @var string|null |
||
138 | */ |
||
139 | protected $commentId; |
||
140 | |||
141 | /** |
||
142 | * ID of current attachment version. |
||
143 | * |
||
144 | * Comment: Attachment ID |
||
145 | * Comment: Optional |
||
146 | * |
||
147 | * @SA\Type("string") |
||
148 | * @SA\SerializedName("currentAttachmentId") |
||
149 | * |
||
150 | * @var string|null |
||
151 | */ |
||
152 | protected $currentAttachmentId; |
||
153 | |||
154 | /** |
||
155 | * Link to download external attachment preview (present if preview is available). |
||
156 | * |
||
157 | * @SA\Type("string") |
||
158 | * @SA\SerializedName("previewUrl") |
||
159 | * |
||
160 | * @var string|null |
||
161 | */ |
||
162 | protected $previewUrl; |
||
163 | |||
164 | /** |
||
165 | * Link to download attachment. |
||
166 | * |
||
167 | * Comment: Optional |
||
168 | * |
||
169 | * @SA\Type("string") |
||
170 | * @SA\SerializedName("url") |
||
171 | * |
||
172 | * @var string|null |
||
173 | */ |
||
174 | protected $url; |
||
175 | |||
176 | /** |
||
177 | * Review IDs. |
||
178 | * |
||
179 | * Comment: Optional |
||
180 | * |
||
181 | * @SA\Type("array<string>") |
||
182 | * @SA\SerializedName("reviewIds") |
||
183 | * |
||
184 | * @var array|string[]|null |
||
185 | */ |
||
186 | protected $reviewIds; |
||
187 | |||
188 | /** |
||
189 | * @return null|string |
||
190 | */ |
||
191 | 1 | public function getId() |
|
195 | |||
196 | /** |
||
197 | * @param null|string $id |
||
198 | * |
||
199 | * @return $this |
||
200 | */ |
||
201 | 1 | public function setId($id) |
|
207 | |||
208 | /** |
||
209 | * @return null|string |
||
210 | */ |
||
211 | 1 | public function getAuthorId() |
|
215 | |||
216 | /** |
||
217 | * @param null|string $authorId |
||
218 | * |
||
219 | * @return $this |
||
220 | */ |
||
221 | 1 | public function setAuthorId($authorId) |
|
227 | |||
228 | /** |
||
229 | * @return null|string |
||
230 | */ |
||
231 | 1 | public function getName() |
|
235 | |||
236 | /** |
||
237 | * @param null|string $name |
||
238 | * |
||
239 | * @return $this |
||
240 | */ |
||
241 | 1 | public function setName($name) |
|
247 | |||
248 | /** |
||
249 | * @return \DateTime|null |
||
250 | */ |
||
251 | 1 | public function getCreatedDate() |
|
255 | |||
256 | /** |
||
257 | * @param \DateTime|null $createdDate |
||
258 | * |
||
259 | * @return $this |
||
260 | */ |
||
261 | 1 | public function setCreatedDate($createdDate) |
|
267 | |||
268 | /** |
||
269 | * @return int|null |
||
270 | */ |
||
271 | 1 | public function getVersion() |
|
275 | |||
276 | /** |
||
277 | * @param int|null $version |
||
278 | * |
||
279 | * @return $this |
||
280 | */ |
||
281 | 1 | public function setVersion($version) |
|
287 | |||
288 | /** |
||
289 | * @return null|string |
||
290 | */ |
||
291 | 1 | public function getType() |
|
295 | |||
296 | /** |
||
297 | * @param null|string $type |
||
298 | * |
||
299 | * @return $this |
||
300 | */ |
||
301 | 1 | public function setType($type) |
|
307 | |||
308 | /** |
||
309 | * @return null|string |
||
310 | */ |
||
311 | 1 | public function getContentType() |
|
315 | |||
316 | /** |
||
317 | * @param null|string $contentType |
||
318 | * |
||
319 | * @return $this |
||
320 | */ |
||
321 | 1 | public function setContentType($contentType) |
|
327 | |||
328 | /** |
||
329 | * @return int|null |
||
330 | */ |
||
331 | 1 | public function getSize() |
|
335 | |||
336 | /** |
||
337 | * @param int|null $size |
||
338 | * |
||
339 | * @return $this |
||
340 | */ |
||
341 | 1 | public function setSize($size) |
|
347 | |||
348 | /** |
||
349 | * @return null|string |
||
350 | */ |
||
351 | 1 | public function getTaskId() |
|
355 | |||
356 | /** |
||
357 | * @param null|string $taskId |
||
358 | * |
||
359 | * @return $this |
||
360 | */ |
||
361 | 1 | public function setTaskId($taskId) |
|
367 | |||
368 | /** |
||
369 | * @return null|string |
||
370 | */ |
||
371 | 1 | public function getFolderId() |
|
375 | |||
376 | /** |
||
377 | * @param null|string $folderId |
||
378 | * |
||
379 | * @return $this |
||
380 | */ |
||
381 | 1 | public function setFolderId($folderId) |
|
387 | |||
388 | /** |
||
389 | * @return null|string |
||
390 | */ |
||
391 | 1 | public function getCommentId() |
|
395 | |||
396 | /** |
||
397 | * @param null|string $commentId |
||
398 | * |
||
399 | * @return $this |
||
400 | */ |
||
401 | 1 | public function setCommentId($commentId) |
|
407 | |||
408 | /** |
||
409 | * @return null|string |
||
410 | */ |
||
411 | 1 | public function getCurrentAttachmentId() |
|
415 | |||
416 | /** |
||
417 | * @param null|string $currentAttachmentId |
||
418 | * |
||
419 | * @return $this |
||
420 | */ |
||
421 | 1 | public function setCurrentAttachmentId($currentAttachmentId) |
|
427 | |||
428 | /** |
||
429 | * @return null|string |
||
430 | */ |
||
431 | 1 | public function getPreviewUrl() |
|
435 | |||
436 | /** |
||
437 | * @param null|string $previewUrl |
||
438 | * |
||
439 | * @return $this |
||
440 | */ |
||
441 | 1 | public function setPreviewUrl($previewUrl) |
|
447 | |||
448 | /** |
||
449 | * @return null|string |
||
450 | */ |
||
451 | 1 | public function getUrl() |
|
455 | |||
456 | /** |
||
457 | * @param null|string $url |
||
458 | * |
||
459 | * @return $this |
||
460 | */ |
||
461 | 1 | public function setUrl($url) |
|
467 | |||
468 | /** |
||
469 | * @return array|null|\string[] |
||
470 | */ |
||
471 | 1 | public function getReviewIds() |
|
475 | |||
476 | /** |
||
477 | * @param array|null|\string[] $reviewIds |
||
478 | * |
||
479 | * @return $this |
||
480 | */ |
||
481 | 1 | public function setReviewIds($reviewIds) |
|
487 | } |
||
488 |