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