Пример #1
0
 public function __construct($rawPost)
 {
     parent::__construct($rawPost);
     $this->tweet = $this->rawPost;
     // prepare Raw Twitter Object. Find out if it's a retweet or not;
     $this->retweeted = isset($this->tweet->retweeted_status) ? 1 : 0;
     $this->canonicalTweet = $this->retweeted ? $this->tweet->retweeted_status : $this->tweet;
     $this->canonicalUser = $this->canonicalTweet->user;
 }
Пример #2
0
 public function __construct($rawPost)
 {
     parent::__construct($rawPost);
     $this->item = (new FacebookGetter())->getItem($this->rawPost['id']);
 }
Пример #3
0
 public function __construct($rawPost)
 {
     parent::__construct($rawPost);
     $this->channel = \Youtube::getChannelById($this->rawPost->snippet->channelId);
 }