Ejemplo n.º 1
0
 public function getAsPost()
 {
     $post = new Post();
     $post->setTitle($this->getTitle());
     $post->setExcerpt($this->getExcerpt());
     $post->setContent($this->getContent());
     $post->setDate($this->getDate());
     return $post;
 }
 public function setDate(\DateTime $date)
 {
     $this->__load();
     return parent::setDate($date);
 }