src/Entity/QuizReponse.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\QuizReponseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassQuizReponseRepository::class)]
  6. class QuizReponse
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $value null;
  14.     #[ORM\ManyToOne(inversedBy'quizReponses')]
  15.     private ?QuizQuestion $question null;
  16.     #[ORM\ManyToOne(inversedBy'quizReponses')]
  17.     private ?User $user null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getValue(): ?string
  23.     {
  24.         return $this->value;
  25.     }
  26.     public function setValue(string $value): self
  27.     {
  28.         $this->value $value;
  29.         return $this;
  30.     }
  31.     public function getQuestion(): ?QuizQuestion
  32.     {
  33.         return $this->question;
  34.     }
  35.     public function setQuestion(?QuizQuestion $question): self
  36.     {
  37.         $this->question $question;
  38.         return $this;
  39.     }
  40.     public function getUser(): ?User
  41.     {
  42.         return $this->user;
  43.     }
  44.     public function setUser(?User $user): self
  45.     {
  46.         $this->user $user;
  47.         return $this;
  48.     }
  49. }