<?php
namespace App\Entity;
use App\Repository\ParTallaRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ParTallaRepository::class)]
class ParTalla
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 100)]
private ?string $nombre = null;
#[ORM\ManyToOne(inversedBy: 'talla')]
private ?ParEstado $estado = null;
#[ORM\OneToMany(mappedBy: 'tallaCamisa', targetEntity: GHEntrevista::class)]
private Collection $tallaCamisa;
#[ORM\OneToMany(mappedBy: 'tallaPantalon', targetEntity: GHEntrevista::class)]
private Collection $tallaPantalon;
#[ORM\OneToMany(mappedBy: 'tallaBotas', targetEntity: GHEntrevista::class)]
private Collection $tallaBotas;
#[ORM\OneToMany(mappedBy: 'tallaGuantes', targetEntity: GHEntrevista::class)]
private Collection $tallaGuantes;
#[ORM\OneToMany(mappedBy: 'tallaChaleco', targetEntity: GHEntrevista::class)]
private Collection $tallaChaleco;
#[ORM\OneToMany(mappedBy: 'talla', targetEntity: GHSolicitudDotacion::class)]
private Collection $solicitudDotacion;
public function __construct()
{
$this->tallaCamisa = new ArrayCollection();
$this->tallaPantalon = new ArrayCollection();
$this->tallaBotas = new ArrayCollection();
$this->tallaGuantes = new ArrayCollection();
$this->tallaChaleco = new ArrayCollection();
$this->solicitudDotacion = 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;
}
public function getEstado(): ?ParEstado
{
return $this->estado;
}
public function setEstado(?ParEstado $estado): static
{
$this->estado = $estado;
return $this;
}
/**
* @return Collection<int, GHEntrevista>
*/
public function getTallaCamisa(): Collection
{
return $this->tallaCamisa;
}
public function addTallaCamisa(GHEntrevista $tallaCamisa): static
{
if (!$this->tallaCamisa->contains($tallaCamisa)) {
$this->tallaCamisa->add($tallaCamisa);
$tallaCamisa->setTallaCamisa($this);
}
return $this;
}
public function removeTallaCamisa(GHEntrevista $tallaCamisa): static
{
if ($this->tallaCamisa->removeElement($tallaCamisa)) {
// set the owning side to null (unless already changed)
if ($tallaCamisa->getTallaCamisa() === $this) {
$tallaCamisa->setTallaCamisa(null);
}
}
return $this;
}
/**
* @return Collection<int, GHEntrevista>
*/
public function getTallaPantalon(): Collection
{
return $this->tallaPantalon;
}
public function addTallaPantalon(GHEntrevista $tallaPantalon): static
{
if (!$this->tallaPantalon->contains($tallaPantalon)) {
$this->tallaPantalon->add($tallaPantalon);
$tallaPantalon->setTallaPantalon($this);
}
return $this;
}
public function removeTallaPantalon(GHEntrevista $tallaPantalon): static
{
if ($this->tallaPantalon->removeElement($tallaPantalon)) {
// set the owning side to null (unless already changed)
if ($tallaPantalon->getTallaPantalon() === $this) {
$tallaPantalon->setTallaPantalon(null);
}
}
return $this;
}
/**
* @return Collection<int, GHEntrevista>
*/
public function getTallaBotas(): Collection
{
return $this->tallaBotas;
}
public function addTallaBota(GHEntrevista $tallaBota): static
{
if (!$this->tallaBotas->contains($tallaBota)) {
$this->tallaBotas->add($tallaBota);
$tallaBota->setTallaBotas($this);
}
return $this;
}
public function removeTallaBota(GHEntrevista $tallaBota): static
{
if ($this->tallaBotas->removeElement($tallaBota)) {
// set the owning side to null (unless already changed)
if ($tallaBota->getTallaBotas() === $this) {
$tallaBota->setTallaBotas(null);
}
}
return $this;
}
/**
* @return Collection<int, GHEntrevista>
*/
public function getTallaGuantes(): Collection
{
return $this->tallaGuantes;
}
public function addTallaGuante(GHEntrevista $tallaGuante): static
{
if (!$this->tallaGuantes->contains($tallaGuante)) {
$this->tallaGuantes->add($tallaGuante);
$tallaGuante->setTallaGuantes($this);
}
return $this;
}
public function removeTallaGuante(GHEntrevista $tallaGuante): static
{
if ($this->tallaGuantes->removeElement($tallaGuante)) {
// set the owning side to null (unless already changed)
if ($tallaGuante->getTallaGuantes() === $this) {
$tallaGuante->setTallaGuantes(null);
}
}
return $this;
}
/**
* @return Collection<int, GHEntrevista>
*/
public function getTallaChaleco(): Collection
{
return $this->tallaChaleco;
}
public function addTallaChaleco(GHEntrevista $tallaChaleco): static
{
if (!$this->tallaChaleco->contains($tallaChaleco)) {
$this->tallaChaleco->add($tallaChaleco);
$tallaChaleco->setTallaChaleco($this);
}
return $this;
}
public function removeTallaChaleco(GHEntrevista $tallaChaleco): static
{
if ($this->tallaChaleco->removeElement($tallaChaleco)) {
// set the owning side to null (unless already changed)
if ($tallaChaleco->getTallaChaleco() === $this) {
$tallaChaleco->setTallaChaleco(null);
}
}
return $this;
}
/**
* @return Collection<int, GHSolicitudDotacion>
*/
public function getSolicitudDotacion(): Collection
{
return $this->solicitudDotacion;
}
public function addSolicitudDotacion(GHSolicitudDotacion $solicitudDotacion): static
{
if (!$this->solicitudDotacion->contains($solicitudDotacion)) {
$this->solicitudDotacion->add($solicitudDotacion);
$solicitudDotacion->setTalla($this);
}
return $this;
}
public function removeSolicitudDotacion(GHSolicitudDotacion $solicitudDotacion): static
{
if ($this->solicitudDotacion->removeElement($solicitudDotacion)) {
// set the owning side to null (unless already changed)
if ($solicitudDotacion->getTalla() === $this) {
$solicitudDotacion->setTalla(null);
}
}
return $this;
}
}