src/Entity/DemandeServiceCandidat.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DemandeServiceCandidatRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassDemandeServiceCandidatRepository::class)]
  9. class DemandeServiceCandidat
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $nomPrenom null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $niveauInstruction null;
  19.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  20.     private ?string $affectation null;
  21.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  22.     private ?string $anciennete null;
  23.     #[ORM\ManyToOne(inversedBy'demandeServiceCandidats')]
  24.     private ?DemandeService $demandeService null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?bool $deleted null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?int $deletedBy null;
  29.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  30.     private ?\DateTimeInterface $deletedAt null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?int $createdBy null;
  33.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  34.     private ?\DateTimeInterface $createdAt null;
  35.     #[ORM\Column(length255)]
  36.     private ?string $email null;
  37.     #[ORM\OneToMany(mappedBy'candidat'targetEntityPourcentageQuiz::class, orphanRemovaltrue)]
  38.     private Collection $pourcentageQuizzes;
  39.     public function __construct()
  40.     {
  41.         $this->pourcentageQuizzes = new ArrayCollection();
  42.     }
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getNomPrenom(): ?string
  48.     {
  49.         return $this->nomPrenom;
  50.     }
  51.     public function setNomPrenom(?string $nomPrenom): self
  52.     {
  53.         $this->nomPrenom $nomPrenom;
  54.         return $this;
  55.     }
  56.     public function getNiveauInstruction(): ?string
  57.     {
  58.         return $this->niveauInstruction;
  59.     }
  60.     public function setNiveauInstruction(?string $niveauInstruction): self
  61.     {
  62.         $this->niveauInstruction $niveauInstruction;
  63.         return $this;
  64.     }
  65.     public function getAffectation(): ?string
  66.     {
  67.         return $this->affectation;
  68.     }
  69.     public function setAffectation(?string $affectation): self
  70.     {
  71.         $this->affectation $affectation;
  72.         return $this;
  73.     }
  74.     public function getAnciennete(): ?string
  75.     {
  76.         return $this->anciennete;
  77.     }
  78.     public function setAnciennete(?string $anciennete): self
  79.     {
  80.         $this->anciennete $anciennete;
  81.         return $this;
  82.     }
  83.     public function getDemandeService(): ?DemandeService
  84.     {
  85.         return $this->demandeService;
  86.     }
  87.     public function setDemandeService(?DemandeService $demandeService): self
  88.     {
  89.         $this->demandeService $demandeService;
  90.         return $this;
  91.     }
  92.     public function isDeleted(): ?bool
  93.     {
  94.         return $this->deleted;
  95.     }
  96.     public function setDeleted(?bool $deleted): self
  97.     {
  98.         $this->deleted $deleted;
  99.         return $this;
  100.     }
  101.     public function getDeletedBy(): ?int
  102.     {
  103.         return $this->deletedBy;
  104.     }
  105.     public function setDeletedBy(?int $deletedBy): self
  106.     {
  107.         $this->deletedBy $deletedBy;
  108.         return $this;
  109.     }
  110.     public function getDeletedAt(): ?\DateTimeInterface
  111.     {
  112.         return $this->deletedAt;
  113.     }
  114.     public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  115.     {
  116.         $this->deletedAt $deletedAt;
  117.         return $this;
  118.     }
  119.     public function getCreatedBy(): ?int
  120.     {
  121.         return $this->createdBy;
  122.     }
  123.     public function setCreatedBy(?int $createdBy): self
  124.     {
  125.         $this->createdBy $createdBy;
  126.         return $this;
  127.     }
  128.     public function getCreatedAt(): ?\DateTimeInterface
  129.     {
  130.         return $this->createdAt;
  131.     }
  132.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  133.     {
  134.         $this->createdAt $createdAt;
  135.         return $this;
  136.     }
  137.     public function getEmail(): ?string
  138.     {
  139.         return $this->email;
  140.     }
  141.     public function setEmail(string $email): self
  142.     {
  143.         $this->email $email;
  144.         return $this;
  145.     }
  146.     /**
  147.      * @return Collection<int, PourcentageQuiz>
  148.      */
  149.     public function getPourcentageQuizzes(): Collection
  150.     {
  151.         return $this->pourcentageQuizzes;
  152.     }
  153.     public function addPourcentageQuiz(PourcentageQuiz $pourcentageQuiz): self
  154.     {
  155.         if (!$this->pourcentageQuizzes->contains($pourcentageQuiz)) {
  156.             $this->pourcentageQuizzes->add($pourcentageQuiz);
  157.             $pourcentageQuiz->setCandidat($this);
  158.         }
  159.         return $this;
  160.     }
  161.     public function removePourcentageQuiz(PourcentageQuiz $pourcentageQuiz): self
  162.     {
  163.         if ($this->pourcentageQuizzes->removeElement($pourcentageQuiz)) {
  164.             // set the owning side to null (unless already changed)
  165.             if ($pourcentageQuiz->getCandidat() === $this) {
  166.                 $pourcentageQuiz->setCandidat(null);
  167.             }
  168.         }
  169.         return $this;
  170.     }
  171.     public function __toString(): string
  172.     {
  173.         return $this->nomPrenom;
  174.     }
  175. }