1 | <?php |
||
16 | class Record |
||
17 | { |
||
18 | /** |
||
19 | * @param \stdClass[] $values |
||
20 | * @return Record[] |
||
21 | */ |
||
22 | 1 | public static function fromList(array $values) |
|
32 | |||
33 | /** |
||
34 | * @param \stdClass $value |
||
35 | * @return Record |
||
36 | */ |
||
37 | 6 | public static function fromValue(\stdClass $value) |
|
41 | |||
42 | /** |
||
43 | * @var \stdClass |
||
44 | */ |
||
45 | protected $source; |
||
46 | |||
47 | /** |
||
48 | * @var \DateTimeInterface |
||
49 | */ |
||
50 | protected $updatedOn; |
||
51 | |||
52 | /** |
||
53 | * @var \DateTimeInterface |
||
54 | */ |
||
55 | protected $createdOn; |
||
56 | |||
57 | /** |
||
58 | * @var Subdef |
||
59 | */ |
||
60 | protected $thumbnail; |
||
61 | |||
62 | /** |
||
63 | * @var Technical[] |
||
64 | */ |
||
65 | protected $technicalInformation; |
||
66 | |||
67 | /** |
||
68 | * @var Metadata[] |
||
69 | */ |
||
70 | protected $metadata; |
||
71 | |||
72 | /** |
||
73 | * @var Subdef[] |
||
74 | */ |
||
75 | protected $subdefs; |
||
76 | |||
77 | /** |
||
78 | * @var RecordStatus[] |
||
79 | */ |
||
80 | protected $status; |
||
81 | |||
82 | /** |
||
83 | * @var RecordCaption[] |
||
84 | */ |
||
85 | protected $caption; |
||
86 | |||
87 | /** |
||
88 | * @param \stdClass $source |
||
89 | */ |
||
90 | 6 | public function __construct(\stdClass $source) |
|
94 | |||
95 | /** |
||
96 | * @return \stdClass |
||
97 | */ |
||
98 | public function getRawData() |
||
102 | |||
103 | /** |
||
104 | * Get unique id |
||
105 | * |
||
106 | * @return string |
||
107 | */ |
||
108 | 6 | public function getId() |
|
112 | |||
113 | /** |
||
114 | * Get the record id |
||
115 | * |
||
116 | * @return integer |
||
117 | */ |
||
118 | 6 | public function getRecordId() |
|
122 | |||
123 | /** |
||
124 | * Get the databox id |
||
125 | * |
||
126 | * @return integer |
||
127 | */ |
||
128 | 6 | public function getDataboxId() |
|
132 | |||
133 | /** |
||
134 | * Get the base id. |
||
135 | * |
||
136 | * @return integer |
||
137 | */ |
||
138 | public function getBaseId() |
||
142 | |||
143 | /** |
||
144 | * Get the record title |
||
145 | * |
||
146 | * @return string |
||
147 | */ |
||
148 | 6 | public function getTitle() |
|
152 | |||
153 | /** |
||
154 | * Get the record mime type |
||
155 | * |
||
156 | * @return string |
||
157 | */ |
||
158 | 6 | public function getMimeType() |
|
162 | |||
163 | /** |
||
164 | * Get the record original name |
||
165 | * |
||
166 | * @return string |
||
167 | */ |
||
168 | 6 | public function getOriginalName() |
|
172 | |||
173 | /** |
||
174 | * Last updated date |
||
175 | * |
||
176 | * @return \DateTime |
||
177 | */ |
||
178 | 6 | public function getUpdatedOn() |
|
182 | |||
183 | /** |
||
184 | * Creation date |
||
185 | * |
||
186 | * @return \DateTime |
||
187 | */ |
||
188 | 6 | public function getCreatedOn() |
|
192 | |||
193 | /** |
||
194 | * Get the record collection id |
||
195 | * |
||
196 | * @return integer |
||
197 | */ |
||
198 | 6 | public function getCollectionId() |
|
202 | |||
203 | /** |
||
204 | * Get the record SHA256 hash |
||
205 | * |
||
206 | * @return string |
||
207 | */ |
||
208 | 6 | public function getSha256() |
|
212 | |||
213 | /** |
||
214 | * Return the thumbnail of the record as a PhraseanetSDK\Entity\Subdef object |
||
215 | * if the thumbnail exists null otherwise |
||
216 | * |
||
217 | * @return Subdef|null |
||
218 | */ |
||
219 | 6 | public function getThumbnail() |
|
227 | |||
228 | /** |
||
229 | * Get the Record phraseaType IMAGE|VIDEO|DOCUMENT etc.. |
||
230 | * |
||
231 | * @return string |
||
232 | */ |
||
233 | 6 | public function getPhraseaType() |
|
237 | |||
238 | /** |
||
239 | * Get the record UUID |
||
240 | * |
||
241 | * @return string |
||
242 | */ |
||
243 | 6 | public function getUuid() |
|
247 | |||
248 | /** |
||
249 | * Get a collection of Phraseanet\Entity\Technical data objects |
||
250 | * |
||
251 | * @return ArrayCollection|Technical[] |
||
252 | */ |
||
253 | 6 | public function getTechnicalInformation() |
|
263 | |||
264 | /** |
||
265 | * Return a collection of PhraseanetSDK\Entity\Subdef for the record |
||
266 | * |
||
267 | * @return ArrayCollection|Subdef[] |
||
268 | */ |
||
269 | public function getSubdefs() |
||
277 | |||
278 | /** |
||
279 | * @return RecordStatus[]|ArrayCollection |
||
280 | */ |
||
281 | public function getStatus() |
||
289 | |||
290 | /** |
||
291 | * @return RecordCaption[]|ArrayCollection |
||
292 | */ |
||
293 | public function getCaption() |
||
301 | |||
302 | /** |
||
303 | * @return Metadata[]|ArrayCollection |
||
304 | */ |
||
305 | public function getMetadata() |
||
313 | } |
||
314 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..