<?phpnamespace App\Entity;use App\Repository\ParNivelEducativoRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ParNivelEducativoRepository::class)]class ParNivelEducativo{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $nivelEducativo = null; #[ORM\OneToMany(mappedBy: 'nivelEducativo', targetEntity: GHEntrevistaInfoAcademica::class)] private Collection $entrevistaInfoAcademica; #[ORM\OneToMany(mappedBy: 'nivelEducativo', targetEntity: TerPersona::class)] private Collection $persona; #[ORM\OneToMany(mappedBy: 'nivelEducativo', targetEntity: TerContactoPersona::class)] private Collection $contactoPersona; #[ORM\ManyToMany(targetEntity: GHPerfilCargo::class, mappedBy: 'ParNivelEducativo')] private Collection $idPerfilCargo; public function __construct() { $this->idEntrevistaInfoAcademica = new ArrayCollection(); $this->persona = new ArrayCollection(); $this->contactoPersona = new ArrayCollection(); $this->idPerfilCargo = new ArrayCollection(); } public function __toString() { return $this->getNivelEducativo(); } public function getId(): ?int { return $this->id; } public function getNivelEducativo(): ?string { return $this->nivelEducativo; } public function setNivelEducativo(string $nivelEducativo): static { $this->nivelEducativo = $nivelEducativo; return $this; } /** * @return Collection<int, GHEntrevistaInfoAcademica> */ public function getEntrevistaInfoAcademica(): Collection { return $this->entrevistaInfoAcademica; } public function addIdEntrevistaInfoAcademica(GHEntrevistaInfoAcademica $entrevistaInfoAcademica): static { if (!$this->entrevistaInfoAcademica->contains($entrevistaInfoAcademica)) { $this->entrevistaInfoAcademica->add($entrevistaInfoAcademica); $entrevistaInfoAcademica->setNivelEducativo($this); } return $this; } public function removeEntrevistaInfoAcademica(GHEntrevistaInfoAcademica $entrevistaInfoAcademica): static { if ($this->entrevistaInfoAcademica->removeElement($entrevistaInfoAcademica)) { // set the owning side to null (unless already changed) if ($entrevistaInfoAcademica->getNivelEducativo() === $this) { $entrevistaInfoAcademica->setNivelEducativo(null); } } return $this; } /** * @return Collection<int, TerPersona> */ public function getPersona(): Collection { return $this->persona; } public function addPersona(TerPersona $persona): static { if (!$this->persona->contains($persona)) { $this->persona->add($persona); $persona->setNivelEducativo($this); } return $this; } public function removePersona(TerPersona $persona): static { if ($this->persona->removeElement($persona)) { // set the owning side to null (unless already changed) if ($persona->getNivelEducativo() === $this) { $persona->setNivelEducativo(null); } } return $this; } /** * @return Collection<int, TerContactoPersona> */ public function getContactoPersona(): Collection { return $this->contactoPersona; } public function addContactoPersona(TerContactoPersona $contactoPersona): static { if (!$this->contactoPersona->contains($contactoPersona)) { $this->contactoPersona->add($contactoPersona); $contactoPersona->setNivelEducativo($this); } return $this; } public function removeContactoPersona(TerContactoPersona $contactoPersona): static { if ($this->contactoPersona->removeElement($contactoPersona)) { // set the owning side to null (unless already changed) if ($contactoPersona->getNivelEducativo() === $this) { $contactoPersona->setNivelEducativo(null); } } return $this; } /** * @return Collection<int, GHPerfilCargo> */ public function getIdPerfilCargo(): Collection { return $this->idPerfilCargo; } public function addIdPerfilCargo(GHPerfilCargo $idPerfilCargo): static { if (!$this->idPerfilCargo->contains($idPerfilCargo)) { $this->idPerfilCargo->add($idPerfilCargo); $idPerfilCargo->addParNivelEducativo($this); } return $this; } public function removeIdPerfilCargo(GHPerfilCargo $idPerfilCargo): static { if ($this->idPerfilCargo->removeElement($idPerfilCargo)) { $idPerfilCargo->removeParNivelEducativo($this); } return $this; }}