createdAt = new \DateTime('now'); } public function getId() : int { return $this->id; } public function getAnswer() : string { return $this->answer; } public function setAnswer(string $answer) /* : void */ { $this->answer = $answer; } public function getQuestion() : int { return $this->question; } public function setQuestion(int $question) /* : void */ { $this->question = $question; } public function getStatus() : int { return $this->status; } public function setStatus(int $status) /* : void */ { $this->status = $status; } public function setAccepted(bool $accepted) /* : void */ { $this->isAccepted = $accepted; } public function isAccepted() : bool { return $this->isAccepted; } public function getCreatedBy() : int { return $this->createdBy; } public function setCreatedBy(int $id) /* : void */ { $this->createdBy = $id; } public function getCreatedAt() : \DateTime { return $this->createdAt; } public function jsonSerialize() : array { return []; } }