1 | <?php |
||
10 | class Tweet |
||
11 | { |
||
12 | /** |
||
13 | * @var int |
||
14 | */ |
||
15 | private $id; |
||
16 | |||
17 | /** |
||
18 | * @var \DateTime |
||
19 | */ |
||
20 | private $created_at; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $text; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | private $retweet_count = 0; |
||
31 | |||
32 | /** |
||
33 | * @var int |
||
34 | */ |
||
35 | private $favorite_count = 0; |
||
36 | |||
37 | /** |
||
38 | * @var User |
||
39 | */ |
||
40 | private $user; |
||
41 | |||
42 | /** |
||
43 | * In timeline: false for retweeted Tweets. |
||
44 | */ |
||
45 | private $in_timeline = false; |
||
46 | |||
47 | /** |
||
48 | * @var Tweet |
||
49 | */ |
||
50 | private $retweeted_status = null; |
||
51 | |||
52 | /** |
||
53 | * @var ArrayCollection |
||
54 | */ |
||
55 | private $retweeting_statuses; |
||
56 | |||
57 | /** |
||
58 | * @var ArrayCollection |
||
59 | */ |
||
60 | private $medias; |
||
61 | |||
62 | 7 | public function __construct($id = null) |
|
71 | |||
72 | /** |
||
73 | * Set id. |
||
74 | * |
||
75 | * @param bigint $id |
||
76 | * |
||
77 | * @return Tweet |
||
78 | */ |
||
79 | 7 | public function setId($id) |
|
85 | |||
86 | /** |
||
87 | * Get id. |
||
88 | * |
||
89 | * @return int |
||
90 | */ |
||
91 | 9 | public function getId() |
|
95 | |||
96 | /** |
||
97 | * Set created_at. |
||
98 | * |
||
99 | * @param \DateTime $createdAt |
||
100 | * |
||
101 | * @return Tweet |
||
102 | */ |
||
103 | 7 | public function setCreatedAt(\Datetime $createdAt) |
|
109 | |||
110 | /** |
||
111 | * Get created_at. |
||
112 | * |
||
113 | * @return \DateTime |
||
114 | */ |
||
115 | 10 | public function getCreatedAt() |
|
119 | |||
120 | /** |
||
121 | * Set text. |
||
122 | * |
||
123 | * @param string $text |
||
124 | * |
||
125 | * @return Tweet |
||
126 | */ |
||
127 | 7 | public function setText($text) |
|
133 | |||
134 | /** |
||
135 | * Get text. |
||
136 | * |
||
137 | * @return string |
||
138 | */ |
||
139 | 11 | public function getText() |
|
143 | |||
144 | 6 | public function getTextLinkified() |
|
153 | |||
154 | /** |
||
155 | * Set retweet_count. |
||
156 | * |
||
157 | * @param int $retweetCount |
||
158 | * |
||
159 | * @return Tweet |
||
160 | */ |
||
161 | 7 | public function setRetweetCount($retweetCount) |
|
167 | |||
168 | /** |
||
169 | * Get retweet_count. |
||
170 | * |
||
171 | * @return int |
||
172 | */ |
||
173 | 8 | public function getRetweetCount() |
|
177 | |||
178 | /** |
||
179 | * Set favorite_count. |
||
180 | * |
||
181 | * @param int $favoriteCount |
||
182 | * |
||
183 | * @return Tweet |
||
184 | */ |
||
185 | 7 | public function setFavoriteCount($favoriteCount) |
|
191 | |||
192 | /** |
||
193 | * Get favorite_count. |
||
194 | * |
||
195 | * @return int |
||
196 | */ |
||
197 | 8 | public function getFavoriteCount() |
|
201 | |||
202 | /** |
||
203 | * Set user. |
||
204 | * |
||
205 | * @param User $user |
||
206 | * |
||
207 | * @return Tweet |
||
208 | */ |
||
209 | 7 | public function setUser(User $user) |
|
216 | |||
217 | /** |
||
218 | * Get User. |
||
219 | * |
||
220 | * @return User |
||
221 | */ |
||
222 | 9 | public function getUser() |
|
226 | |||
227 | /** |
||
228 | * Set in timeline. |
||
229 | * |
||
230 | * @param bool $inTimeline |
||
231 | * |
||
232 | * @return Tweet |
||
233 | */ |
||
234 | 7 | public function setInTimeline($inTimeline) |
|
240 | |||
241 | /** |
||
242 | * Get in timeline. |
||
243 | * |
||
244 | * @return bool |
||
245 | */ |
||
246 | 3 | public function isInTimeline() |
|
250 | |||
251 | /** |
||
252 | * Set retweeted |
||
253 | * "This attribute contains a representation of the original Tweet |
||
254 | * that was retweeted.". |
||
255 | * |
||
256 | * @param self $retweetedStatus |
||
257 | * |
||
258 | * @return Tweet |
||
259 | */ |
||
260 | 6 | public function setRetweetedStatus(self $retweetedStatus) |
|
266 | |||
267 | /** |
||
268 | * Get retweeted status. |
||
269 | * |
||
270 | * @return Tweet |
||
271 | */ |
||
272 | 7 | public function getRetweetedStatus() |
|
276 | |||
277 | /** |
||
278 | * Get medias. |
||
279 | * |
||
280 | * @return ArrayCollection |
||
281 | */ |
||
282 | 6 | public function getMedias() |
|
286 | |||
287 | /** |
||
288 | * Add a media. |
||
289 | * |
||
290 | * @param Media $media |
||
291 | * |
||
292 | * @return Tweet |
||
293 | */ |
||
294 | 6 | public function addMedia(Media $media) |
|
301 | |||
302 | /** |
||
303 | * Remove a media. |
||
304 | * |
||
305 | * @param Media $media |
||
306 | * |
||
307 | * @return Tweet |
||
308 | */ |
||
309 | 1 | public function removeMedia(Media $media) |
|
316 | |||
317 | /** |
||
318 | * Get retweeting status. |
||
319 | * |
||
320 | * @return ArrayCollection |
||
321 | */ |
||
322 | 2 | public function getRetweetingStatuses() |
|
326 | |||
327 | /** |
||
328 | * Call setter functions. |
||
329 | * |
||
330 | * @param \stdClass $tweetTmp |
||
331 | * |
||
332 | * @return Tweet |
||
333 | */ |
||
334 | 3 | public function setValues(\stdClass $tweetTmp) |
|
344 | |||
345 | /** |
||
346 | * Check that tweet can be deleted. |
||
347 | * |
||
348 | * @param int $tweetId |
||
349 | * |
||
350 | * @return bool |
||
351 | */ |
||
352 | 2 | public function mustBeKept($tweetId) |
|
369 | } |
||
370 |
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..