src/Entity/Question.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\QuestionRepository;
  5. #[ORM\Entity(repositoryClassQuestionRepository::class)]
  6. class Question
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $nom;
  14.     #[ORM\ManyToOne(targetEntityQuestionnaire::class)]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private $questionnaire;
  17.     #[ORM\Column(type'string'length30)]
  18.     private $type;
  19.     #[ORM\ManyToOne(targetEntityCategorieQuestion::class)]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private $categorie;
  22.     #[ORM\Column(type'string'length20nullabletrue)]
  23.     private $libelleFix;
  24.     #[ORM\Column(type'boolean')]
  25.     private $active;
  26.     #[ORM\Column(type'integer')]
  27.     private $coef;
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private $commentaireSujetsPreoccupants;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getNom(): ?string
  35.     {
  36.         return $this->nom;
  37.     }
  38.     public function setNom(string $nom): self
  39.     {
  40.         $this->nom $nom;
  41.         return $this;
  42.     }
  43.     public function getQuestionnaire(): ?Questionnaire
  44.     {
  45.         return $this->questionnaire;
  46.     }
  47.     public function setQuestionnaire(?Questionnaire $formulaire): self
  48.     {
  49.         $this->questionnaire $formulaire;
  50.         return $this;
  51.     }
  52.     public function getType(): ?string
  53.     {
  54.         return $this->type;
  55.     }
  56.     public function setType(string $type): self
  57.     {
  58.         $this->type $type;
  59.         return $this;
  60.     }
  61.     public function getCategorie(): ?CategorieQuestion
  62.     {
  63.         return $this->categorie;
  64.     }
  65.     public function setCategorie(?CategorieQuestion $categorie): self
  66.     {
  67.         $this->categorie $categorie;
  68.         return $this;
  69.     }
  70.     public function getLibelleFix(): ?string
  71.     {
  72.         return $this->libelleFix;
  73.     }
  74.     public function setLibelleFix(?string $libelleFix): self
  75.     {
  76.         $this->libelleFix $libelleFix;
  77.         return $this;
  78.     }
  79.     public function getActive(): ?bool
  80.     {
  81.         return $this->active;
  82.     }
  83.     public function setActive(bool $active): self
  84.     {
  85.         $this->active $active;
  86.         return $this;
  87.     }
  88.     public function getCoef(): ?int
  89.     {
  90.         return $this->coef;
  91.     }
  92.     public function setCoef(int $coef): self
  93.     {
  94.         $this->coef $coef;
  95.         return $this;
  96.     }
  97.     public function getCommentaireSujetsPreoccupants(): ?string
  98.     {
  99.         return $this->commentaireSujetsPreoccupants;
  100.     }
  101.     public function setCommentaireSujetsPreoccupants(?string $commentaireSujetsPreoccupants null): self
  102.     {
  103.         $this->commentaireSujetsPreoccupants $commentaireSujetsPreoccupants;
  104.         return $this;
  105.     }
  106. }