<?php
namespace App\Entity;
use App\Repository\JurOperacionSospechosaRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: JurOperacionSospechosaRepository::class)]
class JurOperacionSospechosa
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::TEXT, nullable:true)]
private ?string $observacion = 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\ManyToMany(targetEntity: ParMotivoJuridico::class, inversedBy: 'operacionSospechosa')]
private Collection $motivoJuridico;
#[ORM\Column(length: 255, nullable: true)]
private ?string $matrizAutenticacion = null;
#[ORM\Column(nullable: true)]
private ?bool $reporteUIAF = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $fechaReporteUIAF = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $evidenciaReporteUIAF = null;
#[ORM\OneToMany(mappedBy: 'operacionSospechosa', targetEntity: JurOperacionSospechosaEvidencia::class)]
private Collection $operacionSospechosaEvidencia;
#[ORM\ManyToOne(inversedBy: 'operacionesSospechosas')]
private ?TerEmpresa $empresa = null;
#[ORM\Column(nullable: true)]
private ?int $mes = null;
#[ORM\ManyToOne(inversedBy: 'operacionSospechosa')]
private ?RFInventarioDocumentalComex $do = null;
#[ORM\ManyToOne(inversedBy: 'operacionSospechosa')]
private ?TerEmpresaCliente $empresaCliente = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $OT = null;
#[ORM\ManyToOne(inversedBy: 'operacionesSospechosas')]
private ?TerProveedor $proveedor = null;
#[ORM\ManyToOne]
private ?TerPersona $colaborador = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $DOString = null;
public function __construct()
{
$this->motivoJuridico = new ArrayCollection();
$this->operacionSospechosaEvidencia = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getObservacion(): ?string
{
return $this->observacion;
}
public function setObservacion(string $observacion): static
{
$this->observacion = $observacion;
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;
}
/**
* @return Collection<int, ParMotivoJuridico>
*/
public function getMotivoJuridico(): Collection
{
return $this->motivoJuridico;
}
public function addMotivoJuridico(ParMotivoJuridico $motivoJuridico): static
{
if (!$this->motivoJuridico->contains($motivoJuridico)) {
$this->motivoJuridico->add($motivoJuridico);
}
return $this;
}
public function removeMotivoJuridico(ParMotivoJuridico $motivoJuridico): static
{
$this->motivoJuridico->removeElement($motivoJuridico);
return $this;
}
public function getMatrizAutenticacion(): ?string
{
return $this->matrizAutenticacion;
}
public function setMatrizAutenticacion(?string $matrizAutenticacion): static
{
$this->matrizAutenticacion = $matrizAutenticacion;
return $this;
}
public function isReporteUIAF(): ?bool
{
return $this->reporteUIAF;
}
public function setReporteUIAF(?bool $reporteUIAF): static
{
$this->reporteUIAF = $reporteUIAF;
return $this;
}
public function getFechaReporteUIAF(): ?\DateTimeInterface
{
return $this->fechaReporteUIAF;
}
public function setFechaReporteUIAF(?\DateTimeInterface $fechaReporteUIAF): static
{
$this->fechaReporteUIAF = $fechaReporteUIAF;
return $this;
}
public function getEvidenciaReporteUIAF(): ?string
{
return $this->evidenciaReporteUIAF;
}
public function setEvidenciaReporteUIAF(?string $evidenciaReporteUIAF): static
{
$this->evidenciaReporteUIAF = $evidenciaReporteUIAF;
return $this;
}
/**
* @return Collection<int, JurOperacionSospechosaEvidencia>
*/
public function getOperacionSospechosaEvidencia(): Collection
{
return $this->operacionSospechosaEvidencia;
}
public function addOperacionSospechosaEvidencium(JurOperacionSospechosaEvidencia $operacionSospechosaEvidencium): static
{
if (!$this->operacionSospechosaEvidencia->contains($operacionSospechosaEvidencium)) {
$this->operacionSospechosaEvidencia->add($operacionSospechosaEvidencium);
$operacionSospechosaEvidencium->setOperacionSospechosa($this);
}
return $this;
}
public function removeOperacionSospechosaEvidencium(JurOperacionSospechosaEvidencia $operacionSospechosaEvidencium): static
{
if ($this->operacionSospechosaEvidencia->removeElement($operacionSospechosaEvidencium)) {
// set the owning side to null (unless already changed)
if ($operacionSospechosaEvidencium->getOperacionSospechosa() === $this) {
$operacionSospechosaEvidencium->setOperacionSospechosa(null);
}
}
return $this;
}
public function getEmpresa(): ?TerEmpresa
{
return $this->empresa;
}
public function setEmpresa(?TerEmpresa $empresa): static
{
$this->empresa = $empresa;
return $this;
}
public function getMes(): ?int
{
return $this->mes;
}
public function setMes(?int $mes): static
{
$this->mes = $mes;
return $this;
}
public function getDo(): ?RFInventarioDocumentalComex
{
return $this->do;
}
public function setDo(?RFInventarioDocumentalComex $do): static
{
$this->do = $do;
return $this;
}
public function getEmpresaCliente(): ?TerEmpresaCliente
{
return $this->empresaCliente;
}
public function setEmpresaCliente(?TerEmpresaCliente $empresaCliente): static
{
$this->empresaCliente = $empresaCliente;
return $this;
}
public function getOT(): ?string
{
return $this->OT;
}
public function setOT(?string $OT): static
{
$this->OT = $OT;
return $this;
}
public function getProveedor(): ?TerProveedor
{
return $this->proveedor;
}
public function setProveedor(?TerProveedor $proveedor): static
{
$this->proveedor = $proveedor;
return $this;
}
public function getColaborador(): ?TerPersona
{
return $this->colaborador;
}
public function setColaborador(?TerPersona $colaborador): static
{
$this->colaborador = $colaborador;
return $this;
}
public function getDOString(): ?string
{
return $this->DOString;
}
public function setDOString(?string $DOString): static
{
$this->DOString = $DOString;
return $this;
}
}