src/Entity/ReponsePersonne.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReponsePersonneRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=ReponsePersonneRepository::class)
  9.  */
  10. class ReponsePersonne
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="text", nullable=true)
  20.      */
  21.     private $proposition;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=QuestionTestB1::class, inversedBy="reponsePersonnes")
  24.      */
  25.     private $question;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="reponsePersonnes")
  28.      */
  29.     private $tier;
  30.     /**
  31.      * @ORM\Column(type="boolean", nullable=true)
  32.      */
  33.     private $close;
  34.     /**
  35.      * @ORM\Column(type="datetime", nullable=true)
  36.      */
  37.     private $dateCompo;
  38.     /**
  39.      * @ORM\Column(type="text", nullable=true)
  40.      */
  41.     private $cletest;
  42.     /**
  43.      * @ORM\Column(type="float", nullable=true)
  44.      */
  45.     private $noteAttribuer;
  46.     /**
  47.      * @ORM\OneToMany(targetEntity=ReponsePersonneChoisir::class, mappedBy="reponsePerson")
  48.      */
  49.     private $reponsePersonneChoisirs;
  50.     public function __construct()
  51.     {
  52.         $this->reponsePersonneChoisirs = new ArrayCollection();
  53.     }
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getProposition(): ?string
  59.     {
  60.         return $this->proposition;
  61.     }
  62.     public function setProposition(?string $proposition): self
  63.     {
  64.         $this->proposition $proposition;
  65.         return $this;
  66.     }
  67.     public function getQuestion(): ?QuestionTestB1
  68.     {
  69.         return $this->question;
  70.     }
  71.     public function setQuestion(?QuestionTestB1 $question): self
  72.     {
  73.         $this->question $question;
  74.         return $this;
  75.     }
  76.     public function getTier(): ?Tier
  77.     {
  78.         return $this->tier;
  79.     }
  80.     public function setTier(?Tier $tier): self
  81.     {
  82.         $this->tier $tier;
  83.         return $this;
  84.     }
  85.     public function isClose(): ?bool
  86.     {
  87.         return $this->close;
  88.     }
  89.     public function setClose(?bool $close): self
  90.     {
  91.         $this->close $close;
  92.         return $this;
  93.     }
  94.     public function getDateCompo(): ?\DateTimeInterface
  95.     {
  96.         return $this->dateCompo;
  97.     }
  98.     public function setDateCompo(?\DateTimeInterface $dateCompo): self
  99.     {
  100.         $this->dateCompo $dateCompo;
  101.         return $this;
  102.     }
  103.     public function getCletest(): ?string
  104.     {
  105.         return $this->cletest;
  106.     }
  107.     public function setCletest(?string $cletest): self
  108.     {
  109.         $this->cletest $cletest;
  110.         return $this;
  111.     }
  112.     public function getNoteAttribuer(): ?float
  113.     {
  114.         return $this->noteAttribuer;
  115.     }
  116.     public function setNoteAttribuer(?float $noteAttribuer): self
  117.     {
  118.         $this->noteAttribuer $noteAttribuer;
  119.         return $this;
  120.     }
  121.     /**
  122.      * @return Collection<int, ReponsePersonneChoisir>
  123.      */
  124.     public function getReponsePersonneChoisirs(): Collection
  125.     {
  126.         return $this->reponsePersonneChoisirs;
  127.     }
  128.     public function addReponsePersonneChoisir(ReponsePersonneChoisir $reponsePersonneChoisir): self
  129.     {
  130.         if (!$this->reponsePersonneChoisirs->contains($reponsePersonneChoisir)) {
  131.             $this->reponsePersonneChoisirs[] = $reponsePersonneChoisir;
  132.             $reponsePersonneChoisir->setReponsePerson($this);
  133.         }
  134.         return $this;
  135.     }
  136.     public function removeReponsePersonneChoisir(ReponsePersonneChoisir $reponsePersonneChoisir): self
  137.     {
  138.         if ($this->reponsePersonneChoisirs->removeElement($reponsePersonneChoisir)) {
  139.             // set the owning side to null (unless already changed)
  140.             if ($reponsePersonneChoisir->getReponsePerson() === $this) {
  141.                 $reponsePersonneChoisir->setReponsePerson(null);
  142.             }
  143.         }
  144.         return $this;
  145.     }
  146. }