private function parsePost($entry) { $post = new TwitterPost(); $post->setID($entry['id_str']); $post->setAuthor($entry['user']['id_str']); $post->setCreated(new DateTime($entry['created_at'])); $post->setBody($entry['text']); $post->setParentID($entry['in_reply_to_status_id']); return $post; }