<?phpnamespace App\Entity;use App\Repository\ParHabilidadRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ParHabilidadRepository::class)]class ParHabilidad{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 100)] private ?string $nombre = null; #[ORM\OneToMany(mappedBy: 'habilidad', targetEntity: GHEntrevistaInfoSistemas::class)] private Collection $habilidad; #[ORM\ManyToOne(inversedBy: 'habilidad')] private ?ParEstado $estado = null; #[ORM\OneToMany(mappedBy: 'nivelIngles', targetEntity: TerPersona::class)] private Collection $personaIngles; public function __construct() { $this->habilidad = new ArrayCollection(); $this->evaluacionExperienciaId = new ArrayCollection(); $this->personaIngles = new ArrayCollection(); } public function __toString() { return $this->getNombre(); } public function getId(): ?int { return $this->id; } public function getNombre(): ?string { return $this->nombre; } public function setNombre(string $nombre): static { $this->nombre = $nombre; return $this; } /** * @return Collection<int, GHEntrevistaInfoSistemas> */ public function getHabilidad(): Collection { return $this->habilidad; } public function addHabilidad(GHEntrevistaInfoSistemas $habilidad): static { if (!$this->habilidad->contains($habilidad)) { $this->habilidad->add($habilidad); $habilidad->setHabilidad($this); } return $this; } public function removeHabilidad(GHEntrevistaInfoSistemas $habilidad): static { if ($this->habilidad->removeElement($habilidad)) { // set the owning side to null (unless already changed) if ($habilidad->getHabilidad() === $this) { $habilidad->setHabilidad(null); } } return $this; } public function getEstado(): ?ParEstado { return $this->estado; } public function setEstado(?ParEstado $estado): static { $this->estado = $estado; return $this; } /** * @return Collection<int, TerPersona> */ public function getPersonaIngles(): Collection { return $this->personaIngles; } public function addPersonaIngle(TerPersona $personaIngle): static { if (!$this->personaIngles->contains($personaIngle)) { $this->personaIngles->add($personaIngle); $personaIngle->setNivelIngles($this); } return $this; } public function removePersonaIngle(TerPersona $personaIngle): static { if ($this->personaIngles->removeElement($personaIngle)) { // set the owning side to null (unless already changed) if ($personaIngle->getNivelIngles() === $this) { $personaIngle->setNivelIngles(null); } } return $this; }}