1 | <?php |
||
9 | class Tweet extends AbstractMessage implements TwitterEventTarget, TwitterMessage |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $lang; |
||
15 | |||
16 | /** |
||
17 | * @var TwitterCoordinates |
||
18 | */ |
||
19 | private $coordinates; |
||
20 | |||
21 | /** |
||
22 | * @var TwitterPlace |
||
23 | */ |
||
24 | private $place; |
||
25 | |||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | private $retweeted; |
||
30 | |||
31 | /** |
||
32 | * @var int |
||
33 | */ |
||
34 | private $inReplyToStatusId; |
||
35 | |||
36 | /** |
||
37 | * @var int |
||
38 | */ |
||
39 | private $inReplyToUserId; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | private $inReplyToScreenName; |
||
45 | |||
46 | /** |
||
47 | * @var int |
||
48 | */ |
||
49 | private $retweetCount; |
||
50 | |||
51 | /** |
||
52 | * @var int |
||
53 | */ |
||
54 | private $favoriteCount; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | */ |
||
59 | private $source; |
||
60 | |||
61 | /** |
||
62 | * @var bool |
||
63 | */ |
||
64 | private $favorited; |
||
65 | |||
66 | /** |
||
67 | * @var boolean |
||
68 | */ |
||
69 | private $truncated; |
||
70 | |||
71 | /** |
||
72 | * @var Tweet |
||
73 | */ |
||
74 | private $retweetedStatus; |
||
75 | |||
76 | /** |
||
77 | * Constructor. |
||
78 | */ |
||
79 | 15 | public function __construct() |
|
82 | |||
83 | /** |
||
84 | * @return TwitterCoordinates |
||
85 | */ |
||
86 | 12 | public function getCoordinates() |
|
90 | |||
91 | /** |
||
92 | * @return int |
||
93 | */ |
||
94 | 12 | public function getFavoriteCount() |
|
98 | |||
99 | /** |
||
100 | * @return boolean |
||
101 | */ |
||
102 | 12 | public function isFavorited() |
|
106 | |||
107 | /** |
||
108 | * @return string |
||
109 | */ |
||
110 | 12 | public function getInReplyToScreenName() |
|
114 | |||
115 | /** |
||
116 | * @return int |
||
117 | */ |
||
118 | 12 | public function getInReplyToStatusId() |
|
122 | |||
123 | /** |
||
124 | * @return int |
||
125 | */ |
||
126 | 12 | public function getInReplyToUserId() |
|
130 | |||
131 | /** |
||
132 | * @return string |
||
133 | */ |
||
134 | 12 | public function getLang() |
|
138 | |||
139 | /** |
||
140 | * @return TwitterPlace |
||
141 | */ |
||
142 | 12 | public function getPlace() |
|
146 | |||
147 | /** |
||
148 | * @return int |
||
149 | */ |
||
150 | 12 | public function getRetweetCount() |
|
154 | |||
155 | /** |
||
156 | * @return boolean |
||
157 | */ |
||
158 | 12 | public function isRetweeted() |
|
162 | |||
163 | /** |
||
164 | * @return string |
||
165 | */ |
||
166 | 12 | public function getSource() |
|
170 | |||
171 | /** |
||
172 | * @return boolean |
||
173 | */ |
||
174 | 12 | public function isTruncated() |
|
178 | |||
179 | /** |
||
180 | * @return Tweet |
||
181 | */ |
||
182 | 12 | public function getRetweetedStatus() |
|
186 | |||
187 | /** |
||
188 | * @return string |
||
189 | */ |
||
190 | 3 | public function __toString() |
|
194 | |||
195 | /** |
||
196 | * Static constructor. |
||
197 | * |
||
198 | * @param TwitterMessageId $id |
||
199 | * @param TwitterUser $sender |
||
200 | * @param string $text |
||
201 | * @param string $lang |
||
202 | * @param \DateTimeInterface $createdAt |
||
203 | * @param TwitterEntities $entities |
||
204 | * @param TwitterCoordinates $coordinates |
||
205 | * @param TwitterPlace $place |
||
206 | * @param int $inReplyToStatusId |
||
207 | * @param int $inReplyToUserId |
||
208 | * @param string $inReplyToScreenName |
||
209 | * @param bool $retweeted |
||
210 | * @param int $retweetCount |
||
211 | * @param bool $favorited |
||
212 | * @param int $favoriteCount |
||
213 | * @param bool $truncated |
||
214 | * @param null $source |
||
215 | * @param Tweet $retweetedStatus |
||
216 | * |
||
217 | * @return Tweet |
||
218 | */ |
||
219 | 15 | public static function create( |
|
259 | } |
||
260 |