private function hydrateFeed(array $row) { $feed = new Feed(); $feed->setId($row['id']); $feed->setSource($row['source']); $feed->setLink($row['link']); $feed->setDescription($row['description']); $feed->setTitle($row['title']); $feed->setPublishedDate(new \DateTime($row['published_date'])); $feed->setLastFetched(new \DateTime($row['last_fetched'])); $feed->setLastModified(new \DateTime($row['last_modified'])); return $feed; }