src/Entity/Reponse.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReponseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassReponseRepository::class)]
  6. class Reponse
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(nullabletrue)]
  13.     private ?int $quantity null;
  14.     #[ORM\ManyToOne(inversedBy'reponses')]
  15.     private ?Question $question null;
  16.     #[ORM\Column]
  17.     private ?bool $deleted null;
  18.     #[ORM\Column(nullabletrue)]
  19.     private ?int $minimalQuantity null;
  20.     #[ORM\ManyToOne(inversedBy'reponses')]
  21.     private ?Session $session null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $comment null;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getQuantity(): ?int
  29.     {
  30.         return $this->quantity;
  31.     }
  32.     public function setQuantity(?int $quantity): static
  33.     {
  34.         $this->quantity $quantity;
  35.         return $this;
  36.     }
  37.     public function getQuestion(): ?Question
  38.     {
  39.         return $this->question;
  40.     }
  41.     public function setQuestion(?Question $question): static
  42.     {
  43.         $this->question $question;
  44.         return $this;
  45.     }
  46.     public function isDeleted(): ?bool
  47.     {
  48.         return $this->deleted;
  49.     }
  50.     public function setDeleted(bool $deleted): static
  51.     {
  52.         $this->deleted $deleted;
  53.         return $this;
  54.     }
  55.     public function getMinimalQuantity(): ?int
  56.     {
  57.         return $this->minimalQuantity;
  58.     }
  59.     public function setMinimalQuantity(?int $minimalQuantity): static
  60.     {
  61.         $this->minimalQuantity $minimalQuantity;
  62.         return $this;
  63.     }
  64.     public function getSession(): ?Session
  65.     {
  66.         return $this->session;
  67.     }
  68.     public function setSession(?Session $session): static
  69.     {
  70.         $this->session $session;
  71.         return $this;
  72.     }
  73.     public function getComment(): ?string
  74.     {
  75.         return $this->comment;
  76.     }
  77.     public function setComment(?string $comment): static
  78.     {
  79.         $this->comment $comment;
  80.         return $this;
  81.     }
  82. }