type = $type; } public function getId() { return $this->id; } public function setTitle($title) { $this->title = $title; } public function getTitle() { return $this->title; } public function addComment(Comment $comment) { $comment->setArticle($this); $this->comments[] = $comment; } public function getComments() { return $this->comments; } /** * Get created * * @return datetime $created */ public function getCreated() { return $this->created; } public function setCreated(\DateTime $created) { $this->created = $created; } public function getPublished() { return $this->published; } public function setPublished(\DateTime $published) { $this->published = $published; } /** * Get updated * * @return datetime $updated */ public function getUpdated() { return $this->updated; } public function setUpdated(\DateTime $updated) { $this->updated = $updated; } }