src/Entity/ParSubproceso.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ParSubprocesoRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassParSubprocesoRepository::class)]
  9. class ParSubproceso
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $subproceso null;
  17.     #[ORM\OneToMany(mappedBy'subprocesoId'targetEntityGHPerfilCargo::class)]
  18.     private Collection $idPerfilCargo;
  19.     #[ORM\ManyToOne(inversedBy'subproceso')]
  20.     private ?ParProceso $proceso null;
  21.     #[ORM\OneToMany(mappedBy'subProceso'targetEntityGHGrupoTrabajo::class)]
  22.     private Collection $grupoTrabajo;
  23.     #[ORM\OneToMany(mappedBy'subProceso'targetEntityRFTablaRetencion::class)]
  24.     private Collection $tablaRetenciones;
  25.     #[ORM\OneToMany(mappedBy'subProceso'targetEntityGHMatrizEntrenamientoProceso::class)]
  26.     private Collection $gHMatrizEntrenamientoProcesos;
  27.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $createAt null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $createUser null;
  31.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  32.     private ?\DateTimeInterface $updateAt null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $updateUser null;
  35.     #[ORM\Column(length255nullabletrue)]
  36.     private ?string $codigoTR null;
  37.     #[ORM\Column(length255nullabletrue)]
  38.     private ?string $DocumentosTR null;
  39.     public function __construct()
  40.     {
  41.         $this->idPerfilCargo = new ArrayCollection();
  42.         $this->grupoTrabajo = new ArrayCollection();
  43.         $this->tablaRetenciones = new ArrayCollection();
  44.         $this->gHMatrizEntrenamientoProcesos = new ArrayCollection();
  45.     }
  46.     public function __toString() {
  47.         return $this->getSubproceso();
  48.     }
  49.     
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getSubproceso(): ?string
  55.     {
  56.         return $this->subproceso;
  57.     }
  58.     public function setSubproceso(string $subproceso): static
  59.     {
  60.         $this->subproceso $subproceso;
  61.         return $this;
  62.     }
  63.     /**
  64.      * @return Collection<int, GHPerfilCargo>
  65.      */
  66.     public function getIdPerfilCargo(): Collection
  67.     {
  68.         return $this->idPerfilCargo;
  69.     }
  70.     public function addIdPerfilCargo(GHPerfilCargo $idPerfilCargo): static
  71.     {
  72.         if (!$this->idPerfilCargo->contains($idPerfilCargo)) {
  73.             $this->idPerfilCargo->add($idPerfilCargo);
  74.             $idPerfilCargo->setSubprocesoId($this);
  75.         }
  76.         return $this;
  77.     }
  78.     public function removeIdPerfilCargo(GHPerfilCargo $idPerfilCargo): static
  79.     {
  80.         if ($this->idPerfilCargo->removeElement($idPerfilCargo)) {
  81.             // set the owning side to null (unless already changed)
  82.             if ($idPerfilCargo->getSubprocesoId() === $this) {
  83.                 $idPerfilCargo->setSubprocesoId(null);
  84.             }
  85.         }
  86.         return $this;
  87.     }
  88.     public function getProceso(): ?ParProceso
  89.     {
  90.         return $this->proceso;
  91.     }
  92.     public function setProceso(?ParProceso $proceso): static
  93.     {
  94.         $this->proceso $proceso;
  95.         return $this;
  96.     }
  97.     /**
  98.      * @return Collection<int, GHGrupoTrabajo>
  99.      */
  100.     public function getGrupoTrabajo(): Collection
  101.     {
  102.         return $this->grupoTrabajo;
  103.     }
  104.     public function addGrupoTrabajo(GHGrupoTrabajo $grupoTrabajo): static
  105.     {
  106.         if (!$this->grupoTrabajo->contains($grupoTrabajo)) {
  107.             $this->grupoTrabajo->add($grupoTrabajo);
  108.             $grupoTrabajo->setSubProceso($this);
  109.         }
  110.         return $this;
  111.     }
  112.     public function removeGrupoTrabajo(GHGrupoTrabajo $grupoTrabajo): static
  113.     {
  114.         if ($this->grupoTrabajo->removeElement($grupoTrabajo)) {
  115.             // set the owning side to null (unless already changed)
  116.             if ($grupoTrabajo->getSubProceso() === $this) {
  117.                 $grupoTrabajo->setSubProceso(null);
  118.             }
  119.         }
  120.         return $this;
  121.     }
  122.     /**
  123.      * @return Collection<int, RFTablaRetencion>
  124.      */
  125.     public function getTablaRetenciones(): Collection
  126.     {
  127.         return $this->tablaRetenciones;
  128.     }
  129.     public function addTablaRetencione(RFTablaRetencion $tablaRetencione): static
  130.     {
  131.         if (!$this->tablaRetenciones->contains($tablaRetencione)) {
  132.             $this->tablaRetenciones->add($tablaRetencione);
  133.             $tablaRetencione->setSubProceso($this);
  134.         }
  135.         return $this;
  136.     }
  137.     public function removeTablaRetencione(RFTablaRetencion $tablaRetencione): static
  138.     {
  139.         if ($this->tablaRetenciones->removeElement($tablaRetencione)) {
  140.             // set the owning side to null (unless already changed)
  141.             if ($tablaRetencione->getSubProceso() === $this) {
  142.                 $tablaRetencione->setSubProceso(null);
  143.             }
  144.         }
  145.         return $this;
  146.     }
  147.     /**
  148.      * @return Collection<int, GHMatrizEntrenamientoProceso>
  149.      */
  150.     public function getGHMatrizEntrenamientoProcesos(): Collection
  151.     {
  152.         return $this->gHMatrizEntrenamientoProcesos;
  153.     }
  154.     public function addGHMatrizEntrenamientoProceso(GHMatrizEntrenamientoProceso $gHMatrizEntrenamientoProceso): static
  155.     {
  156.         if (!$this->gHMatrizEntrenamientoProcesos->contains($gHMatrizEntrenamientoProceso)) {
  157.             $this->gHMatrizEntrenamientoProcesos->add($gHMatrizEntrenamientoProceso);
  158.             $gHMatrizEntrenamientoProceso->setSubProceso($this);
  159.         }
  160.         return $this;
  161.     }
  162.     public function removeGHMatrizEntrenamientoProceso(GHMatrizEntrenamientoProceso $gHMatrizEntrenamientoProceso): static
  163.     {
  164.         if ($this->gHMatrizEntrenamientoProcesos->removeElement($gHMatrizEntrenamientoProceso)) {
  165.             // set the owning side to null (unless already changed)
  166.             if ($gHMatrizEntrenamientoProceso->getSubProceso() === $this) {
  167.                 $gHMatrizEntrenamientoProceso->setSubProceso(null);
  168.             }
  169.         }
  170.         return $this;
  171.     }
  172.     public function getCreateAt(): ?\DateTimeInterface
  173.     {
  174.         return $this->createAt;
  175.     }
  176.     public function setCreateAt(?\DateTimeInterface $createAt): static
  177.     {
  178.         $this->createAt $createAt;
  179.         return $this;
  180.     }
  181.     public function getCreateUser(): ?string
  182.     {
  183.         return $this->createUser;
  184.     }
  185.     public function setCreateUser(?string $createUser): static
  186.     {
  187.         $this->createUser $createUser;
  188.         return $this;
  189.     }
  190.     public function getUpdateAt(): ?\DateTimeInterface
  191.     {
  192.         return $this->updateAt;
  193.     }
  194.     public function setUpdateAt(?\DateTimeInterface $updateAt): static
  195.     {
  196.         $this->updateAt $updateAt;
  197.         return $this;
  198.     }
  199.     public function getUpdateUser(): ?string
  200.     {
  201.         return $this->updateUser;
  202.     }
  203.     public function setUpdateUser(?string $updateUser): static
  204.     {
  205.         $this->updateUser $updateUser;
  206.         return $this;
  207.     }
  208.     public function getCodigoTR(): ?string
  209.     {
  210.         return $this->codigoTR;
  211.     }
  212.     public function setCodigoTR(?string $codigoTR): static
  213.     {
  214.         $this->codigoTR $codigoTR;
  215.         return $this;
  216.     }
  217.     public function getDocumentosTR(): ?string
  218.     {
  219.         return $this->DocumentosTR;
  220.     }
  221.     public function setDocumentosTR(?string $DocumentosTR): static
  222.     {
  223.         $this->DocumentosTR $DocumentosTR;
  224.         return $this;
  225.     }
  226. }