src/Entity/LibelleReponse.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\LibelleReponseRepository;
  5. #[ORM\Entity(repositoryClassLibelleReponseRepository::class)]
  6. class LibelleReponse
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length50)]
  13.     private $libelle;
  14.     #[ORM\Column(type'integer')]
  15.     private $min;
  16.     #[ORM\Column(type'integer')]
  17.     private $max;
  18.     #[ORM\ManyToOne(targetEntityQuestion::class)]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private $question;
  21.     #[ORM\Column(type'string'length10nullabletrue)]
  22.     private $couleur;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getLibelle(): ?string
  28.     {
  29.         return $this->libelle;
  30.     }
  31.     public function setLibelle(string $libelle): self
  32.     {
  33.         $this->libelle $libelle;
  34.         return $this;
  35.     }
  36.     public function getMin(): ?int
  37.     {
  38.         return $this->min;
  39.     }
  40.     public function setMin(int $min): self
  41.     {
  42.         $this->min $min;
  43.         return $this;
  44.     }
  45.     public function getMax(): ?int
  46.     {
  47.         return $this->max;
  48.     }
  49.     public function setMax(int $max): self
  50.     {
  51.         $this->max $max;
  52.         return $this;
  53.     }
  54.     public function getQuestion(): ?Question
  55.     {
  56.         return $this->question;
  57.     }
  58.     public function setQuestion(?Question $question): self
  59.     {
  60.         $this->question $question;
  61.         return $this;
  62.     }
  63.     public function getCouleur(): ?string
  64.     {
  65.         return $this->couleur;
  66.     }
  67.     public function setCouleur(?string $couleur): self
  68.     {
  69.         $this->couleur $couleur;
  70.         return $this;
  71.     }
  72. }