id = $id; $this->title = $title; $this->content = $content; $this->author = $author; $this->creationDate = $creationDate; $this->category = $category; $this->tags = $tags; } /** * Gibt die ID eines Artikels zurück. * @return int */ public function getId() { return $this->id; } /** * Gibt den Titel eines Artikels zurück. * @return string */ public function getTitle() { return $this->title; } /** * Setzt den Titel eines Artikels * @param $title * @return void */ public function setTitle($title) { $this->title = $title; } /** * Gibt den Content eines Artikels zurück. * TODO: Content muss noch definiert werden. * @return string */ public function getContent() { return $this->content; } /** * Setzt den Content eines Artikels. * TODO: Content muss noch definiert werden. * @param $content * @return void */ public function setContent($content) { $this->content = $content; } /** * Gibt den Autor eines Artikels zurück. * @return string */ public function getAuthor() { return $this->author; } /** * Gibt das Veröffentlichungsdatum des Artikels zurück. * @return mixed */ public function getCreationDate() { return $this->creationDate; } /** * Gibt die Kategorie eines Artikels zurück. * @return string */ public function getCategory() { return $this->category; } /** * Gibt die Schlagworte eines Artikels zurück. * @return string[] */ public function getTags() { return $this->tags; } /** * Setzt die Schlagworte eines Artikels. * @param string[] $tags */ public function setTags($tags) { $this->tags = $tags; } } ?>