id = $id; $this->date = $date; $this->score = $score; $this->text = $text; $this->userName = $userName; } public function getId(): int { return $this->id; } public function getDate(): DateTime { return $this->date; } public function getScore(): int { return $this->score; } public function getText(): string { return $this->text; } public function getUserName(): string { return $this->userName; } }