src/Entity/ParTalla.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ParTallaRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassParTallaRepository::class)]
  8. class ParTalla
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length100)]
  15.     private ?string $nombre null;
  16.     #[ORM\ManyToOne(inversedBy'talla')]
  17.     private ?ParEstado $estado null;
  18.     #[ORM\OneToMany(mappedBy'tallaCamisa'targetEntityGHEntrevista::class)]
  19.     private Collection $tallaCamisa;
  20.     #[ORM\OneToMany(mappedBy'tallaPantalon'targetEntityGHEntrevista::class)]
  21.     private Collection $tallaPantalon;
  22.     #[ORM\OneToMany(mappedBy'tallaBotas'targetEntityGHEntrevista::class)]
  23.     private Collection $tallaBotas;
  24.     #[ORM\OneToMany(mappedBy'tallaGuantes'targetEntityGHEntrevista::class)]
  25.     private Collection $tallaGuantes;
  26.     #[ORM\OneToMany(mappedBy'tallaChaleco'targetEntityGHEntrevista::class)]
  27.     private Collection $tallaChaleco;
  28.     #[ORM\OneToMany(mappedBy'talla'targetEntityGHSolicitudDotacion::class)]
  29.     private Collection $solicitudDotacion;
  30.     public function __construct()
  31.     {
  32.         $this->tallaCamisa = new ArrayCollection();
  33.         $this->tallaPantalon = new ArrayCollection();
  34.         $this->tallaBotas = new ArrayCollection();
  35.         $this->tallaGuantes = new ArrayCollection();
  36.         $this->tallaChaleco = new ArrayCollection();
  37.         $this->solicitudDotacion = new ArrayCollection();
  38.     }
  39.     
  40.     public function __toString() {
  41.         return $this->getNombre();
  42.     }
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getNombre(): ?string
  48.     {
  49.         return $this->nombre;
  50.     }
  51.     public function setNombre(string $nombre): static
  52.     {
  53.         $this->nombre $nombre;
  54.         return $this;
  55.     }
  56.     public function getEstado(): ?ParEstado
  57.     {
  58.         return $this->estado;
  59.     }
  60.     public function setEstado(?ParEstado $estado): static
  61.     {
  62.         $this->estado $estado;
  63.         return $this;
  64.     }
  65.     /**
  66.      * @return Collection<int, GHEntrevista>
  67.      */
  68.     public function getTallaCamisa(): Collection
  69.     {
  70.         return $this->tallaCamisa;
  71.     }
  72.     public function addTallaCamisa(GHEntrevista $tallaCamisa): static
  73.     {
  74.         if (!$this->tallaCamisa->contains($tallaCamisa)) {
  75.             $this->tallaCamisa->add($tallaCamisa);
  76.             $tallaCamisa->setTallaCamisa($this);
  77.         }
  78.         return $this;
  79.     }
  80.     public function removeTallaCamisa(GHEntrevista $tallaCamisa): static
  81.     {
  82.         if ($this->tallaCamisa->removeElement($tallaCamisa)) {
  83.             // set the owning side to null (unless already changed)
  84.             if ($tallaCamisa->getTallaCamisa() === $this) {
  85.                 $tallaCamisa->setTallaCamisa(null);
  86.             }
  87.         }
  88.         return $this;
  89.     }
  90.     /**
  91.      * @return Collection<int, GHEntrevista>
  92.      */
  93.     public function getTallaPantalon(): Collection
  94.     {
  95.         return $this->tallaPantalon;
  96.     }
  97.     public function addTallaPantalon(GHEntrevista $tallaPantalon): static
  98.     {
  99.         if (!$this->tallaPantalon->contains($tallaPantalon)) {
  100.             $this->tallaPantalon->add($tallaPantalon);
  101.             $tallaPantalon->setTallaPantalon($this);
  102.         }
  103.         return $this;
  104.     }
  105.     public function removeTallaPantalon(GHEntrevista $tallaPantalon): static
  106.     {
  107.         if ($this->tallaPantalon->removeElement($tallaPantalon)) {
  108.             // set the owning side to null (unless already changed)
  109.             if ($tallaPantalon->getTallaPantalon() === $this) {
  110.                 $tallaPantalon->setTallaPantalon(null);
  111.             }
  112.         }
  113.         return $this;
  114.     }
  115.     /**
  116.      * @return Collection<int, GHEntrevista>
  117.      */
  118.     public function getTallaBotas(): Collection
  119.     {
  120.         return $this->tallaBotas;
  121.     }
  122.     public function addTallaBota(GHEntrevista $tallaBota): static
  123.     {
  124.         if (!$this->tallaBotas->contains($tallaBota)) {
  125.             $this->tallaBotas->add($tallaBota);
  126.             $tallaBota->setTallaBotas($this);
  127.         }
  128.         return $this;
  129.     }
  130.     public function removeTallaBota(GHEntrevista $tallaBota): static
  131.     {
  132.         if ($this->tallaBotas->removeElement($tallaBota)) {
  133.             // set the owning side to null (unless already changed)
  134.             if ($tallaBota->getTallaBotas() === $this) {
  135.                 $tallaBota->setTallaBotas(null);
  136.             }
  137.         }
  138.         return $this;
  139.     }
  140.     /**
  141.      * @return Collection<int, GHEntrevista>
  142.      */
  143.     public function getTallaGuantes(): Collection
  144.     {
  145.         return $this->tallaGuantes;
  146.     }
  147.     public function addTallaGuante(GHEntrevista $tallaGuante): static
  148.     {
  149.         if (!$this->tallaGuantes->contains($tallaGuante)) {
  150.             $this->tallaGuantes->add($tallaGuante);
  151.             $tallaGuante->setTallaGuantes($this);
  152.         }
  153.         return $this;
  154.     }
  155.     public function removeTallaGuante(GHEntrevista $tallaGuante): static
  156.     {
  157.         if ($this->tallaGuantes->removeElement($tallaGuante)) {
  158.             // set the owning side to null (unless already changed)
  159.             if ($tallaGuante->getTallaGuantes() === $this) {
  160.                 $tallaGuante->setTallaGuantes(null);
  161.             }
  162.         }
  163.         return $this;
  164.     }
  165.     /**
  166.      * @return Collection<int, GHEntrevista>
  167.      */
  168.     public function getTallaChaleco(): Collection
  169.     {
  170.         return $this->tallaChaleco;
  171.     }
  172.     public function addTallaChaleco(GHEntrevista $tallaChaleco): static
  173.     {
  174.         if (!$this->tallaChaleco->contains($tallaChaleco)) {
  175.             $this->tallaChaleco->add($tallaChaleco);
  176.             $tallaChaleco->setTallaChaleco($this);
  177.         }
  178.         return $this;
  179.     }
  180.     public function removeTallaChaleco(GHEntrevista $tallaChaleco): static
  181.     {
  182.         if ($this->tallaChaleco->removeElement($tallaChaleco)) {
  183.             // set the owning side to null (unless already changed)
  184.             if ($tallaChaleco->getTallaChaleco() === $this) {
  185.                 $tallaChaleco->setTallaChaleco(null);
  186.             }
  187.         }
  188.         return $this;
  189.     }
  190.     /**
  191.      * @return Collection<int, GHSolicitudDotacion>
  192.      */
  193.     public function getSolicitudDotacion(): Collection
  194.     {
  195.         return $this->solicitudDotacion;
  196.     }
  197.     public function addSolicitudDotacion(GHSolicitudDotacion $solicitudDotacion): static
  198.     {
  199.         if (!$this->solicitudDotacion->contains($solicitudDotacion)) {
  200.             $this->solicitudDotacion->add($solicitudDotacion);
  201.             $solicitudDotacion->setTalla($this);
  202.         }
  203.         return $this;
  204.     }
  205.     public function removeSolicitudDotacion(GHSolicitudDotacion $solicitudDotacion): static
  206.     {
  207.         if ($this->solicitudDotacion->removeElement($solicitudDotacion)) {
  208.             // set the owning side to null (unless already changed)
  209.             if ($solicitudDotacion->getTalla() === $this) {
  210.                 $solicitudDotacion->setTalla(null);
  211.             }
  212.         }
  213.         return $this;
  214.     }
  215. }