id = $id; $this->title = $title; $this->content = $content; $this->author = $author; $this->date = $date; } /** * Gibt die ID eines Artikels zurück. */ public function getId() { return $this->id; } /** * Gibt den Titel eines Artikels zurück. */ public function getTitle() { return $this->title; } /** * Setzt den Titel eines Artikels. */ public function setTitle($title) { $this->title = $title; } /** * Gibt den Content eines Artikels zurück. * TODO: Content muss noch definiert werden. */ public function getContent() { return $this->content; } /** * Setzt den Content eines Artikels. * TODO: Content muss noch definiert werden. */ public function setContent($content) { $this->content = $content; } /** * Gibt den Autor eines Artikels zurück. */ public function getAuthor() { return $this->author; } /** * Gibt das Veröffentlichungsdatum des Artikels zurück. */ public function getDate() { return $this->date; } } ?>