/** * @return \Darathor\Amt\Tweet|null */ public function getQuotedTweet() { if (isset($this->data['quoted_status'])) { $quoted = new self(); $quoted->loadFromArray($this->data['quoted_status']); return $quoted; } elseif (isset($this->data['retweeted_status']['quoted_status'])) { $quoted = new self(); $quoted->loadFromArray($this->data['retweeted_status']['quoted_status']); return $quoted; } return null; }