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']); $post->setURL("https://twitter.com/" . $entry['user']['id'] . "/status/" . $entry['id']); return $post; }