src/Utils/PersistTweet.php
protected function createTweet(\stdClass $tweetTmp, $user, $inTimeline)
    {
        $tweet = new Tweet();

        $tweet
            ->setId($tweetTmp->id)
            ->setValues($tweetTmp)
            ->setUser($user)
            ->setInTimeline($inTimeline);

        $this->addMedias($tweetTmp, $tweet);

        return $tweet;
    }
protected function createTweet(\stdClass $tweetTmp, $user, $inTimeline)
    {
        $tweet = new Tweet();

        $tweet
            ->setId($tweetTmp->id)
            ->setValues($tweetTmp)
            ->setUser($user)
            ->setInTimeline($inTimeline);

        $this->addMedias($tweetTmp, $tweet);

        return $tweet;
    }
protected function createTweet ( \ stdClass $ tweetTmp , $ user , $ inTimeline ) { $ tweet = new Tweet ( ) ; $ tweet -> setId ( $ tweetTmp -> id ) -> setValues ( $ tweetTmp ) -> setUser ( $ user ) -> setInTimeline ( $ inTimeline ) ; $ this -> addMedias ( $ tweetTmp , $ tweet ) ; return $ tweet ; }
Create a Tweet object and return it.

@param \stdClass $tweetTmp
@param User      $user
@param bool      $inTimeline

@return Tweet
Create a Tweet object and return it .