protected function createTweetEntities($tweets)
    {
        $entities = [];

        foreach ($tweets as $tweet)
        {
            $user = $this->twitterFactory->createUser($tweet['user']);
            $entities[] = $this->twitterFactory->createTweet($tweet, $user);
        }

        return $entities;
    }
protected function createTweetEntities($tweets)
    {
        $entities = [];

        foreach ($tweets as $tweet)
        {
            $user = $this->twitterFactory->createUser($tweet['user']);
            $entities[] = $this->twitterFactory->createTweet($tweet, $user);
        }

        return $entities;
    }
protected function createTweetEntities ( $ tweets ) { $ entities = [ ] ; foreach ( $ tweets as $ tweet ) { $ user = $ this -> twitterFactory -> createUser ( $ tweet [ 'user' ] ) ; $ entities [ ] = $ this -> twitterFactory -> createTweet ( $ tweet , $ user ) ; } return $ entities ; }
Create Tweet Entities

@param $tweets

@return array
Create Tweet Entities