1 | <?php |
||
14 | class Attachment implements AttachmentInterface |
||
15 | { |
||
16 | /** |
||
17 | * @Type("string") |
||
18 | */ |
||
19 | private $id; |
||
20 | |||
21 | /** |
||
22 | * @Type("string") |
||
23 | */ |
||
24 | private $fileName; |
||
25 | |||
26 | /** |
||
27 | * @Type("string") |
||
28 | */ |
||
29 | private $downloadUrl; |
||
30 | |||
31 | /** |
||
32 | * @Type("int") |
||
33 | */ |
||
34 | private $fileSize; |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getId() |
||
43 | |||
44 | /** |
||
45 | * @param $id |
||
46 | * |
||
47 | * @return Attachment |
||
48 | */ |
||
49 | public function setId($id) |
||
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getFileName() |
||
63 | |||
64 | /** |
||
65 | * @param $fileName |
||
66 | * |
||
67 | * @return Attachment |
||
68 | */ |
||
69 | public function setFileName($fileName) |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getDownloadUrl() |
||
83 | |||
84 | /** |
||
85 | * @param $downloadUrl |
||
86 | * |
||
87 | * @return Attachment |
||
88 | */ |
||
89 | public function setDownloadUrl($downloadUrl) |
||
95 | |||
96 | /** |
||
97 | * @return int |
||
98 | */ |
||
99 | public function getFileSize() |
||
103 | |||
104 | /** |
||
105 | * @param $fileSize |
||
106 | * |
||
107 | * @return Attachment |
||
108 | */ |
||
109 | public function setFileSize($fileSize) |
||
115 | |||
116 | /** |
||
117 | * @HandlerCallback("json", direction = "deserialization") |
||
118 | */ |
||
119 | public function deserializeFromJson(JsonDeserializationVisitor $visitor, array $data, DeserializationContext $context) |
||
137 | } |
||
138 |