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; }
public function __construct($rawPost) { parent::__construct($rawPost); $this->item = (new FacebookGetter())->getItem($this->rawPost['id']); }
public function __construct($rawPost) { parent::__construct($rawPost); $this->channel = \Youtube::getChannelById($this->rawPost->snippet->channelId); }