| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 17 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php namespace Tuiter;  | 
            ||
| 19 | public function __construct(Reader $reader)  | 
            ||
| 20 |     { | 
            ||
| 21 | $tweets = [];  | 
            ||
| 22 |         foreach ($reader->fetchAssoc() as $tweet) { | 
            ||
| 23 | $tweets[] = new Tweet(  | 
            ||
| 24 | $this->getFrom($tweet, 'tweet_id'),  | 
            ||
| 25 | $this->getFrom($tweet, 'text'),  | 
            ||
| 26 | $this->getFrom($tweet, 'source'),  | 
            ||
| 27 | $this->getFrom($tweet, 'timestamp'),  | 
            ||
| 28 | $this->getFrom($tweet, 'in_reply_to_status_id'),  | 
            ||
| 29 | $this->getFrom($tweet, 'retweeted_status_id'),  | 
            ||
| 30 | $this->getFrom($tweet, 'expanded_urls')  | 
            ||
| 31 | );  | 
            ||
| 32 | }  | 
            ||
| 33 | |||
| 34 | $this->tweetCollection = new TweetCollection($tweets);  | 
            ||
| 35 | }  | 
            ||
| 36 | |||
| 73 |