src/Entity/JurProceso.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\JurProcesoRepository;
  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(repositoryClassJurProcesoRepository::class)]
  9. class JurProceso {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(inversedBy'proceso')]
  15.     private ?TerEmpresa $empresaFilial null;
  16.     #[ORM\ManyToOne(inversedBy'proceso')]
  17.     private ?ParRama $rama null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $tipo null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $contraparte null;
  22.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  23.     private ?\DateTimeInterface $fechaNotificacion null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $archivoNotificacion null;
  26.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  27.     private ?\DateTimeInterface $fechaVencimiento null;
  28.     #[ORM\Column(typeTypes::TEXT)]
  29.     private ?string $motivo null;
  30.     #[ORM\Column(typeTypes::DECIMALprecision11scale2nullabletrue)]
  31.     private ?string $monto null;
  32.     #[ORM\ManyToOne(inversedBy'procesoJuridico')]
  33.     private ?ParEstado $estado null;
  34.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  35.     private ?\DateTimeInterface $createAt null;
  36.     #[ORM\Column(length50)]
  37.     private ?string $createUser null;
  38.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  39.     private ?\DateTimeInterface $updateAt null;
  40.     #[ORM\Column(length50)]
  41.     private ?string $updateUser null;
  42.     #[ORM\OneToMany(mappedBy'proceso'targetEntityJurRespuestaProceso::class)]
  43.     private Collection $respuestaProceso;
  44.     #[ORM\ManyToOne(inversedBy'procesoJuridico')]
  45.     private ?TerEmpresaCliente $empresaCliente null;
  46.     #[ORM\ManyToOne(inversedBy'procesoJuridico')]
  47.     private ?TerAsociado $empresaAsociado null;
  48.     #[ORM\OneToMany(mappedBy'proceso'targetEntityJurProcesoEvidencia::class)]
  49.     private Collection $procesoEvidencia;
  50.     #[ORM\ManyToOne(inversedBy'procesosJuridico')]
  51.     private ?TerSedeEmpresa $sede null;
  52.     #[ORM\ManyToOne(inversedBy'proceso')]
  53.     private ?ParTipificacionJuridica $tipificacionJuridica null;
  54.     #[ORM\ManyToOne(targetEntityself::class, inversedBy'procesosAnteriores')]
  55.     private ?self $procesoAnterior null;
  56.     #[ORM\OneToMany(mappedBy'procesoAnterior'targetEntityself::class)]
  57.     private Collection $procesosAnteriores;
  58.     #[ORM\Column(nullabletrue)]
  59.     private ?bool $vinculoProcesoAnterior null;
  60.     #[ORM\Column(nullabletrue)]
  61.     private ?bool $accionCorrectiva null;
  62.     public function __toString(): string {
  63.         $rama $this->getRama() != null $this->getRama()->getNombre() : "";
  64.         $fecNot $this->getFechaNotificacion() != null $this->getFechaNotificacion()->format('Y-m-d') : "";
  65.         
  66.        // return "{$this->getId()} - {$rama} - {$fecNot}";
  67.         return $this->getTipo();
  68.     }
  69.     public function __construct() {
  70.         $this->respuestaProceso = new ArrayCollection();
  71.         $this->procesoEvidencia = new ArrayCollection();
  72.         $this->procesosAnteriores = new ArrayCollection();
  73.     }
  74.     public function getId(): ?int {
  75.         return $this->id;
  76.     }
  77.     public function getEmpresaFilial(): ?TerEmpresa {
  78.         return $this->empresaFilial;
  79.     }
  80.     public function setEmpresaFilial(?TerEmpresa $empresaFilial): static {
  81.         $this->empresaFilial $empresaFilial;
  82.         return $this;
  83.     }
  84.     public function getRama(): ?ParRama {
  85.         return $this->rama;
  86.     }
  87.     public function setRama(?ParRama $rama): static {
  88.         $this->rama $rama;
  89.         return $this;
  90.     }
  91.     public function getTipo(): ?string {
  92.         return $this->tipo;
  93.     }
  94.     public function setTipo(string $tipo): static {
  95.         $this->tipo $tipo;
  96.         return $this;
  97.     }
  98.     public function getContraparte(): ?string {
  99.         return $this->contraparte;
  100.     }
  101.     public function setContraparte(string $contraparte): static {
  102.         $this->contraparte $contraparte;
  103.         return $this;
  104.     }
  105.     public function getFechaNotificacion(): ?\DateTimeInterface {
  106.         return $this->fechaNotificacion;
  107.     }
  108.     public function setFechaNotificacion(\DateTimeInterface $fechaNotificacion): static {
  109.         $this->fechaNotificacion $fechaNotificacion;
  110.         return $this;
  111.     }
  112.     public function getArchivoNotificacion(): ?string {
  113.         return $this->archivoNotificacion;
  114.     }
  115.     public function setArchivoNotificacion(string $archivoNotificacion): static {
  116.         $this->archivoNotificacion $archivoNotificacion;
  117.         return $this;
  118.     }
  119.     public function getFechaVencimiento(): ?\DateTimeInterface {
  120.         return $this->fechaVencimiento;
  121.     }
  122.     public function setFechaVencimiento(\DateTimeInterface $fechaVencimiento): static {
  123.         $this->fechaVencimiento $fechaVencimiento;
  124.         return $this;
  125.     }
  126.     public function getMotivo(): ?string {
  127.         return $this->motivo;
  128.     }
  129.     public function setMotivo(string $motivo): static {
  130.         $this->motivo $motivo;
  131.         return $this;
  132.     }
  133.     public function getMonto(): ?string {
  134.         return $this->monto;
  135.     }
  136.     public function setMonto(string $monto): static {
  137.         $this->monto $monto;
  138.         return $this;
  139.     }
  140.     public function getEstado(): ?ParEstado {
  141.         return $this->estado;
  142.     }
  143.     public function setEstado(?ParEstado $estado): static {
  144.         $this->estado $estado;
  145.         return $this;
  146.     }
  147.     public function getCreateAt(): ?\DateTimeInterface {
  148.         return $this->createAt;
  149.     }
  150.     public function setCreateAt(\DateTimeInterface $createAt): static {
  151.         $this->createAt $createAt;
  152.         return $this;
  153.     }
  154.     public function getCreateUser(): ?string {
  155.         return $this->createUser;
  156.     }
  157.     public function setCreateUser(string $createUser): static {
  158.         $this->createUser $createUser;
  159.         return $this;
  160.     }
  161.     public function getUpdateAt(): ?\DateTimeInterface {
  162.         return $this->updateAt;
  163.     }
  164.     public function setUpdateAt(\DateTimeInterface $updateAt): static {
  165.         $this->updateAt $updateAt;
  166.         return $this;
  167.     }
  168.     public function getUpdateUser(): ?string {
  169.         return $this->updateUser;
  170.     }
  171.     public function setUpdateUser(string $updateUser): static {
  172.         $this->updateUser $updateUser;
  173.         return $this;
  174.     }
  175.     /**
  176.      * @return Collection<int, JurRespuestaProceso>
  177.      */
  178.     public function getRespuestaProceso(): Collection {
  179.         return $this->respuestaProceso;
  180.     }
  181.     public function addRespuestaProceso(JurRespuestaProceso $respuestaProceso): static {
  182.         if (!$this->respuestaProceso->contains($respuestaProceso)) {
  183.             $this->respuestaProceso->add($respuestaProceso);
  184.             $respuestaProceso->setProceso($this);
  185.         }
  186.         return $this;
  187.     }
  188.     public function removeRespuestaProceso(JurRespuestaProceso $respuestaProceso): static {
  189.         if ($this->respuestaProceso->removeElement($respuestaProceso)) {
  190.             // set the owning side to null (unless already changed)
  191.             if ($respuestaProceso->getProceso() === $this) {
  192.                 $respuestaProceso->setProceso(null);
  193.             }
  194.         }
  195.         return $this;
  196.     }
  197.     public function getEmpresaCliente(): ?TerEmpresaCliente {
  198.         return $this->empresaCliente;
  199.     }
  200.     public function setEmpresaCliente(?TerEmpresaCliente $empresaCliente): static {
  201.         $this->empresaCliente $empresaCliente;
  202.         return $this;
  203.     }
  204.     public function getEmpresaAsociado(): ?TerAsociado {
  205.         return $this->empresaAsociado;
  206.     }
  207.     public function setEmpresaAsociado(?TerAsociado $empresaAsociado): static {
  208.         $this->empresaAsociado $empresaAsociado;
  209.         return $this;
  210.     }
  211.     /**
  212.      * @return Collection<int, JurProcesoEvidencia>
  213.      */
  214.     public function getProcesoEvidencia(): Collection {
  215.         return $this->procesoEvidencia;
  216.     }
  217.     public function addProcesoEvidencium(JurProcesoEvidencia $procesoEvidencium): static {
  218.         if (!$this->procesoEvidencia->contains($procesoEvidencium)) {
  219.             $this->procesoEvidencia->add($procesoEvidencium);
  220.             $procesoEvidencium->setProceso($this);
  221.         }
  222.         return $this;
  223.     }
  224.     public function removeProcesoEvidencium(JurProcesoEvidencia $procesoEvidencium): static {
  225.         if ($this->procesoEvidencia->removeElement($procesoEvidencium)) {
  226.             // set the owning side to null (unless already changed)
  227.             if ($procesoEvidencium->getProceso() === $this) {
  228.                 $procesoEvidencium->setProceso(null);
  229.             }
  230.         }
  231.         return $this;
  232.     }
  233.     public function getSede(): ?TerSedeEmpresa {
  234.         return $this->sede;
  235.     }
  236.     public function setSede(?TerSedeEmpresa $sede): static {
  237.         $this->sede $sede;
  238.         return $this;
  239.     }
  240.     public function getTipificacionJuridica(): ?ParTipificacionJuridica {
  241.         return $this->tipificacionJuridica;
  242.     }
  243.     public function setTipificacionJuridica(?ParTipificacionJuridica $tipificacionJuridica): static {
  244.         $this->tipificacionJuridica $tipificacionJuridica;
  245.         return $this;
  246.     }
  247.     public function getProcesoAnterior(): ?self {
  248.         return $this->procesoAnterior;
  249.     }
  250.     public function setProcesoAnterior(?self $procesoAnterior): static {
  251.         $this->procesoAnterior $procesoAnterior;
  252.         return $this;
  253.     }
  254.     /**
  255.      * @return Collection<int, self>
  256.      */
  257.     public function getProcesosAnteriores(): Collection {
  258.         return $this->procesosAnteriores;
  259.     }
  260.     public function addProcesosAnteriore(self $procesosAnteriore): static {
  261.         if (!$this->procesosAnteriores->contains($procesosAnteriore)) {
  262.             $this->procesosAnteriores->add($procesosAnteriore);
  263.             $procesosAnteriore->setProcesoAnterior($this);
  264.         }
  265.         return $this;
  266.     }
  267.     public function removeProcesosAnteriore(self $procesosAnteriore): static {
  268.         if ($this->procesosAnteriores->removeElement($procesosAnteriore)) {
  269.             // set the owning side to null (unless already changed)
  270.             if ($procesosAnteriore->getProcesoAnterior() === $this) {
  271.                 $procesosAnteriore->setProcesoAnterior(null);
  272.             }
  273.         }
  274.         return $this;
  275.     }
  276.     public function isVinculoProcesoAnterior(): ?bool {
  277.         return $this->vinculoProcesoAnterior;
  278.     }
  279.     public function setVinculoProcesoAnterior(?bool $vinculoProcesoAnterior): static {
  280.         $this->vinculoProcesoAnterior $vinculoProcesoAnterior;
  281.         return $this;
  282.     }
  283.     public function isAccionCorrectiva(): ?bool
  284.     {
  285.         return $this->accionCorrectiva;
  286.     }
  287.     public function setAccionCorrectiva(?bool $accionCorrectiva): static
  288.     {
  289.         $this->accionCorrectiva $accionCorrectiva;
  290.         return $this;
  291.     }
  292. }