Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.coaching-en-developpement-personnel.fr
/
htdocs
/
src
/
Entity
/
/srv/data/web/vhosts/www.coaching-en-developpement-personnel.fr/htdocs/src/Entity/Answer.php
<?php namespace App\Entity; use App\Repository\AnswerRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=AnswerRepository::class) */ class Answer { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $label; /** * @ORM\Column(type="boolean") */ private $isCorrect; /** * @ORM\ManyToOne(targetEntity=Question::class, inversedBy="answers") */ private $question; public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getIsCorrect(): ?bool { return $this->isCorrect; } public function setIsCorrect(bool $isCorrect): self { $this->isCorrect = $isCorrect; return $this; } public function getQuestion(): ?Question { return $this->question; } public function setQuestion(?Question $question): self { $this->question = $question; return $this; } }