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 string $created */ public function getCreated() { return $this->created; } public function setCreated($created) { $this->created = $created; } public function getPublished() { return $this->published; } public function setPublished($published) { $this->published = $published; } /** * Get updated * * @return string $updated */ public function getUpdated() { return $this->updated; } public function setUpdated($updated) { $this->updated = $updated; } }