<?phpnamespace App\Entity;use App\Repository\DemandeServiceCandidatRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DemandeServiceCandidatRepository::class)]class DemandeServiceCandidat{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] private ?string $nomPrenom = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $niveauInstruction = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $affectation = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $anciennete = null; #[ORM\ManyToOne(inversedBy: 'demandeServiceCandidats')] private ?DemandeService $demandeService = null; #[ORM\Column(nullable: true)] private ?bool $deleted = null; #[ORM\Column(nullable: true)] private ?int $deletedBy = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $deletedAt = null; #[ORM\Column(nullable: true)] private ?int $createdBy = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $createdAt = null; #[ORM\Column(length: 255)] private ?string $email = null; #[ORM\OneToMany(mappedBy: 'candidat', targetEntity: PourcentageQuiz::class, orphanRemoval: true)] private Collection $pourcentageQuizzes; public function __construct() { $this->pourcentageQuizzes = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getNomPrenom(): ?string { return $this->nomPrenom; } public function setNomPrenom(?string $nomPrenom): self { $this->nomPrenom = $nomPrenom; return $this; } public function getNiveauInstruction(): ?string { return $this->niveauInstruction; } public function setNiveauInstruction(?string $niveauInstruction): self { $this->niveauInstruction = $niveauInstruction; return $this; } public function getAffectation(): ?string { return $this->affectation; } public function setAffectation(?string $affectation): self { $this->affectation = $affectation; return $this; } public function getAnciennete(): ?string { return $this->anciennete; } public function setAnciennete(?string $anciennete): self { $this->anciennete = $anciennete; return $this; } public function getDemandeService(): ?DemandeService { return $this->demandeService; } public function setDemandeService(?DemandeService $demandeService): self { $this->demandeService = $demandeService; return $this; } public function isDeleted(): ?bool { return $this->deleted; } public function setDeleted(?bool $deleted): self { $this->deleted = $deleted; return $this; } public function getDeletedBy(): ?int { return $this->deletedBy; } public function setDeletedBy(?int $deletedBy): self { $this->deletedBy = $deletedBy; return $this; } public function getDeletedAt(): ?\DateTimeInterface { return $this->deletedAt; } public function setDeletedAt(?\DateTimeInterface $deletedAt): self { $this->deletedAt = $deletedAt; return $this; } public function getCreatedBy(): ?int { return $this->createdBy; } public function setCreatedBy(?int $createdBy): self { $this->createdBy = $createdBy; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } /** * @return Collection<int, PourcentageQuiz> */ public function getPourcentageQuizzes(): Collection { return $this->pourcentageQuizzes; } public function addPourcentageQuiz(PourcentageQuiz $pourcentageQuiz): self { if (!$this->pourcentageQuizzes->contains($pourcentageQuiz)) { $this->pourcentageQuizzes->add($pourcentageQuiz); $pourcentageQuiz->setCandidat($this); } return $this; } public function removePourcentageQuiz(PourcentageQuiz $pourcentageQuiz): self { if ($this->pourcentageQuizzes->removeElement($pourcentageQuiz)) { // set the owning side to null (unless already changed) if ($pourcentageQuiz->getCandidat() === $this) { $pourcentageQuiz->setCandidat(null); } } return $this; } public function __toString(): string { return $this->nomPrenom; }}