id; } public function getCandidate(): Candidate { return $this->candidate; } public function setCandidate(Candidate $candidate): static { $this->candidate = $candidate; return $this; } public function getQuiz(): ?Quiz { return $this->quiz; } public function setQuiz(Quiz $quiz): static { $this->quiz = $quiz; return $this; } public function getAnswer(): ?Answer { return $this->answer; } public function setAnswer(?Answer $answer): static { $this->answer = $answer; return $this; } public function getCreated(): \DateTimeImmutable { return $this->created; } #[ORM\PrePersist] public function setCreatedAtValue(): void { $this->created = new DateTimeImmutable(); } }