<?phpnamespace App\Entity;use App\Repository\JurDocumentoLegalRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: JurDocumentoLegalRepository::class)]class JurDocumentoLegal{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'documentoLegal')] private ?ParTipoDocumentoJuridico $tipoDocumento = null; #[ORM\ManyToOne(inversedBy: 'documentoLegal')] private ?TerAsociado $asociado = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $fechaFirma = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $fechaVencimiento = null; #[ORM\Column(length: 255, nullable: true)] private ?string $linkConsulta = null; #[ORM\Column(length: 255, nullable: true)] private ?string $formatoModelo = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $createAt = null; #[ORM\Column(length: 50)] private ?string $createUser = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $updateAt = null; #[ORM\Column(length: 50)] private ?string $updateUser = null; #[ORM\Column(type: Types::TEXT)] private ?string $descripcion = null; #[ORM\OneToMany(mappedBy: 'documentoLegal', targetEntity: JurDocumentoLegalEvidencia::class)] private Collection $documentoLegalEvidencias; #[ORM\ManyToOne(inversedBy: 'documentosLegales')] private ?TerEmpresaCliente $empresaCliente = null; #[ORM\ManyToOne(inversedBy: 'documentosLegales')] private ?TerProveedor $proveedor = null; public function __construct() { $this->documentoLegalEvidencias = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getTipoDocumento(): ?ParTipoDocumentoJuridico { return $this->tipoDocumento; } public function setTipoDocumento(?ParTipoDocumentoJuridico $tipoDocumento): static { $this->tipoDocumento = $tipoDocumento; return $this; } public function getAsociado(): ?TerAsociado { return $this->asociado; } public function setAsociado(?TerAsociado $asociado): static { $this->asociado = $asociado; return $this; } public function getFechaFirma(): ?\DateTimeInterface { return $this->fechaFirma; } public function setFechaFirma(?\DateTimeInterface $fechaFirma): static { $this->fechaFirma = $fechaFirma; return $this; } public function getFechaVencimiento(): ?\DateTimeInterface { return $this->fechaVencimiento; } public function setFechaVencimiento(?\DateTimeInterface $fechaVencimiento): static { $this->fechaVencimiento = $fechaVencimiento; return $this; } public function getLinkConsulta(): ?string { return $this->linkConsulta; } public function setLinkConsulta(?string $linkConsulta): static { $this->linkConsulta = $linkConsulta; return $this; } public function getFormatoModelo(): ?string { return $this->formatoModelo; } public function setFormatoModelo(?string $formatoModelo): static { $this->formatoModelo = $formatoModelo; return $this; } public function getCreateAt(): ?\DateTimeInterface { return $this->createAt; } public function setCreateAt(\DateTimeInterface $createAt): static { $this->createAt = $createAt; return $this; } public function getCreateUser(): ?string { return $this->createUser; } public function setCreateUser(string $createUser): static { $this->createUser = $createUser; return $this; } public function getUpdateAt(): ?\DateTimeInterface { return $this->updateAt; } public function setUpdateAt(\DateTimeInterface $updateAt): static { $this->updateAt = $updateAt; return $this; } public function getUpdateUser(): ?string { return $this->updateUser; } public function setUpdateUser(string $updateUser): static { $this->updateUser = $updateUser; return $this; } public function getDescripcion(): ?string { return $this->descripcion; } public function setDescripcion(string $descripcion): static { $this->descripcion = $descripcion; return $this; } /** * @return Collection<int, JurDocumentoLegalEvidencia> */ public function getDocumentoLegalEvidencias(): Collection { return $this->documentoLegalEvidencias; } public function addDocumentoLegalEvidencia(JurDocumentoLegalEvidencia $documentoLegalEvidencia): static { if (!$this->documentoLegalEvidencias->contains($documentoLegalEvidencia)) { $this->documentoLegalEvidencias->add($documentoLegalEvidencia); $documentoLegalEvidencia->setDocumentoLegal($this); } return $this; } public function removeDocumentoLegalEvidencia(JurDocumentoLegalEvidencia $documentoLegalEvidencia): static { if ($this->documentoLegalEvidencias->removeElement($documentoLegalEvidencia)) { // set the owning side to null (unless already changed) if ($documentoLegalEvidencia->getDocumentoLegal() === $this) { $documentoLegalEvidencia->setDocumentoLegal(null); } } return $this; } public function getEmpresaCliente(): ?TerEmpresaCliente { return $this->empresaCliente; } public function setEmpresaCliente(?TerEmpresaCliente $empresaCliente): static { $this->empresaCliente = $empresaCliente; return $this; } public function getProveedor(): ?TerProveedor { return $this->proveedor; } public function setProveedor(?TerProveedor $proveedor): static { $this->proveedor = $proveedor; return $this; }}