src/Entity/JurDocumentoLegal.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\JurDocumentoLegalRepository;
  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(repositoryClassJurDocumentoLegalRepository::class)]
  9. class JurDocumentoLegal
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'documentoLegal')]
  16.     private ?ParTipoDocumentoJuridico $tipoDocumento null;
  17.     #[ORM\ManyToOne(inversedBy'documentoLegal')]
  18.     private ?TerAsociado $asociado null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $fechaFirma null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $fechaVencimiento null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $linkConsulta null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $formatoModelo null;
  27.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  28.     private ?\DateTimeInterface $createAt null;
  29.     #[ORM\Column(length50)]
  30.     private ?string $createUser null;
  31.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  32.     private ?\DateTimeInterface $updateAt null;
  33.     #[ORM\Column(length50)]
  34.     private ?string $updateUser null;
  35.     #[ORM\Column(typeTypes::TEXT)]
  36.     private ?string $descripcion null;
  37.     #[ORM\OneToMany(mappedBy'documentoLegal'targetEntityJurDocumentoLegalEvidencia::class)]
  38.     private Collection $documentoLegalEvidencias;
  39.     #[ORM\ManyToOne(inversedBy'documentosLegales')]
  40.     private ?TerEmpresaCliente $empresaCliente null;
  41.     #[ORM\ManyToOne(inversedBy'documentosLegales')]
  42.     private ?TerProveedor $proveedor null;
  43.     public function __construct()
  44.     {
  45.         $this->documentoLegalEvidencias = new ArrayCollection();
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getTipoDocumento(): ?ParTipoDocumentoJuridico
  52.     {
  53.         return $this->tipoDocumento;
  54.     }
  55.     public function setTipoDocumento(?ParTipoDocumentoJuridico $tipoDocumento): static
  56.     {
  57.         $this->tipoDocumento $tipoDocumento;
  58.         return $this;
  59.     }
  60.     public function getAsociado(): ?TerAsociado
  61.     {
  62.         return $this->asociado;
  63.     }
  64.     public function setAsociado(?TerAsociado $asociado): static
  65.     {
  66.         $this->asociado $asociado;
  67.         return $this;
  68.     }
  69.     public function getFechaFirma(): ?\DateTimeInterface
  70.     {
  71.         return $this->fechaFirma;
  72.     }
  73.     public function setFechaFirma(?\DateTimeInterface $fechaFirma): static
  74.     {
  75.         $this->fechaFirma $fechaFirma;
  76.         return $this;
  77.     }
  78.     public function getFechaVencimiento(): ?\DateTimeInterface
  79.     {
  80.         return $this->fechaVencimiento;
  81.     }
  82.     public function setFechaVencimiento(?\DateTimeInterface $fechaVencimiento): static
  83.     {
  84.         $this->fechaVencimiento $fechaVencimiento;
  85.         return $this;
  86.     }
  87.     public function getLinkConsulta(): ?string
  88.     {
  89.         return $this->linkConsulta;
  90.     }
  91.     public function setLinkConsulta(?string $linkConsulta): static
  92.     {
  93.         $this->linkConsulta $linkConsulta;
  94.         return $this;
  95.     }
  96.     public function getFormatoModelo(): ?string
  97.     {
  98.         return $this->formatoModelo;
  99.     }
  100.     public function setFormatoModelo(?string $formatoModelo): static
  101.     {
  102.         $this->formatoModelo $formatoModelo;
  103.         return $this;
  104.     }
  105.     public function getCreateAt(): ?\DateTimeInterface
  106.     {
  107.         return $this->createAt;
  108.     }
  109.     public function setCreateAt(\DateTimeInterface $createAt): static
  110.     {
  111.         $this->createAt $createAt;
  112.         return $this;
  113.     }
  114.     public function getCreateUser(): ?string
  115.     {
  116.         return $this->createUser;
  117.     }
  118.     public function setCreateUser(string $createUser): static
  119.     {
  120.         $this->createUser $createUser;
  121.         return $this;
  122.     }
  123.     public function getUpdateAt(): ?\DateTimeInterface
  124.     {
  125.         return $this->updateAt;
  126.     }
  127.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  128.     {
  129.         $this->updateAt $updateAt;
  130.         return $this;
  131.     }
  132.     public function getUpdateUser(): ?string
  133.     {
  134.         return $this->updateUser;
  135.     }
  136.     public function setUpdateUser(string $updateUser): static
  137.     {
  138.         $this->updateUser $updateUser;
  139.         return $this;
  140.     }
  141.     public function getDescripcion(): ?string
  142.     {
  143.         return $this->descripcion;
  144.     }
  145.     public function setDescripcion(string $descripcion): static
  146.     {
  147.         $this->descripcion $descripcion;
  148.         return $this;
  149.     }
  150.     /**
  151.      * @return Collection<int, JurDocumentoLegalEvidencia>
  152.      */
  153.     public function getDocumentoLegalEvidencias(): Collection
  154.     {
  155.         return $this->documentoLegalEvidencias;
  156.     }
  157.     public function addDocumentoLegalEvidencia(JurDocumentoLegalEvidencia $documentoLegalEvidencia): static
  158.     {
  159.         if (!$this->documentoLegalEvidencias->contains($documentoLegalEvidencia)) {
  160.             $this->documentoLegalEvidencias->add($documentoLegalEvidencia);
  161.             $documentoLegalEvidencia->setDocumentoLegal($this);
  162.         }
  163.         return $this;
  164.     }
  165.     public function removeDocumentoLegalEvidencia(JurDocumentoLegalEvidencia $documentoLegalEvidencia): static
  166.     {
  167.         if ($this->documentoLegalEvidencias->removeElement($documentoLegalEvidencia)) {
  168.             // set the owning side to null (unless already changed)
  169.             if ($documentoLegalEvidencia->getDocumentoLegal() === $this) {
  170.                 $documentoLegalEvidencia->setDocumentoLegal(null);
  171.             }
  172.         }
  173.         return $this;
  174.     }
  175.     public function getEmpresaCliente(): ?TerEmpresaCliente
  176.     {
  177.         return $this->empresaCliente;
  178.     }
  179.     public function setEmpresaCliente(?TerEmpresaCliente $empresaCliente): static
  180.     {
  181.         $this->empresaCliente $empresaCliente;
  182.         return $this;
  183.     }
  184.     public function getProveedor(): ?TerProveedor
  185.     {
  186.         return $this->proveedor;
  187.     }
  188.     public function setProveedor(?TerProveedor $proveedor): static
  189.     {
  190.         $this->proveedor $proveedor;
  191.         return $this;
  192.     }
  193. }