setCreated(); $this->setUpdated(); } /** * @preUpdate */ public function setUpdated() { $this->updated = new \DateTime(); } public function setCreated() { $this->created = new \DateTime(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set title * * @param string $title * @return EntityPages */ public function setTitle($title) { $this->title = $title; return $this; } /** * Get title * * @return string */ public function getTitle() { return $this->title; } /** * Get slug * * @return string */ public function getSlug() { return $this->slug; } public function setSlug($slug) { $this->slug = $slug; return $this; } /** * Set content * * @param string $content * @return EntityPages */ public function setContent($content) { $this->content = $content; return $this; } /** * Get content * * @return string */ public function getContent() { return $this->content; } }