src/Entity/TestB1.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TestB1Repository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=TestB1Repository::class)
  9.  */
  10. class TestB1
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="float")
  20.      */
  21.     private $note;
  22.     /**
  23.      * @ORM\Column(type="date")
  24.      */
  25.     private $DateTest;
  26.     /**
  27.      * @ORM\ManyToMany(targetEntity=QuestionTestB1::class, inversedBy="testB1s")
  28.      */
  29.     private $questionTest;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="testB1s")
  32.      */
  33.     private $tier;
  34.     /**
  35.      * @ORM\Column(type="boolean", nullable=true)
  36.      */
  37.     private $envoyer;
  38.     public function __construct()
  39.     {
  40.         $this->questionTest = new ArrayCollection();
  41.     }
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getNote(): ?float
  47.     {
  48.         return $this->note;
  49.     }
  50.     public function setNote(float $note): self
  51.     {
  52.         $this->note $note;
  53.         return $this;
  54.     }
  55.     public function getDateTest(): ?\DateTimeInterface
  56.     {
  57.         return $this->DateTest;
  58.     }
  59.     public function setDateTest(\DateTimeInterface $DateTest): self
  60.     {
  61.         $this->DateTest $DateTest;
  62.         return $this;
  63.     }
  64.     /**
  65.      * @return Collection<int, QuestionTestB1>
  66.      */
  67.     public function getQuestionTest(): Collection
  68.     {
  69.         return $this->questionTest;
  70.     }
  71.     public function addQuestionTest(QuestionTestB1 $questionTest): self
  72.     {
  73.         if (!$this->questionTest->contains($questionTest)) {
  74.             $this->questionTest[] = $questionTest;
  75.         }
  76.         return $this;
  77.     }
  78.     public function removeQuestionTest(QuestionTestB1 $questionTest): self
  79.     {
  80.         $this->questionTest->removeElement($questionTest);
  81.         return $this;
  82.     }
  83.     public function getTier(): ?Tier
  84.     {
  85.         return $this->tier;
  86.     }
  87.     public function setTier(?Tier $tier): self
  88.     {
  89.         $this->tier $tier;
  90.         return $this;
  91.     }
  92.     public function isEnvoyer(): ?bool
  93.     {
  94.         return $this->envoyer;
  95.     }
  96.     public function setEnvoyer(?bool $envoyer): self
  97.     {
  98.         $this->envoyer $envoyer;
  99.         return $this;
  100.     }
  101. }