src/Entity/RFInventarioDocumentalComex.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RFInventarioDocumentalComexRepository;
  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. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  9. use Symfony\Component\Validator\Constraints as Assert;
  10. #[ORM\Table(name'rf_inventario_documental_comex')]
  11. #[ORM\Entity(repositoryClassRFInventarioDocumentalComexRepository::class)]
  12. #[UniqueEntity(fields: ['numeroDO'], errorPath'numeroDO'message'El DO indicado ya esta registrado')]
  13. #[UniqueEntity(fields: ['numeroDOAsociado'], errorPath'numeroDOAsociado'message'El DO indicado ya esta registrado')]
  14. class RFInventarioDocumentalComex {
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue]
  17.     #[ORM\Column]
  18.     private ?int $id null;
  19.     #[ORM\Column(length255uniquetrue)]
  20.     private ?string $numeroDO null;
  21.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComex')]
  22.     private ?TerEmpresaCliente $cliente null;
  23.     #[ORM\Column(length255uniquetruenullabletrue)]
  24.     private ?string $numeroDOAsociado null;
  25.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComex')]
  26.     private ?TerAsociado $asociadoNegocio null;
  27.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComex')]
  28.     private ?TerSedeEmpresa $sede null;
  29.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComex')]
  30.     private ?ParTipoOperacion $tipoOperacion null;
  31.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  32.     private ?\DateTimeInterface $fechaLevante null;
  33.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  34.     private ?\DateTimeInterface $fechaVencimientoIMPEXP null;
  35.     #[ORM\Column]
  36.     private ?float $tomo null;
  37.     #[ORM\Column(typeTypes::JSONnullabletrue)]
  38.     private array $folio = [];
  39.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  40.     private ?string $observacion null;
  41.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComex')]
  42.     private ?RFFUID $FUID null;
  43.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComex')]
  44.     private ?ParEstado $estado null;
  45.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  46.     private ?\DateTimeInterface $createAt null;
  47.     #[ORM\Column(length50)]
  48.     private ?string $createUser null;
  49.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  50.     private ?\DateTimeInterface $updateAt null;
  51.     #[ORM\Column(length50)]
  52.     private ?string $updateUser null;
  53.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComex')]
  54.     private ?ParTipoUbicacion $tipoUbicacion null;
  55.     #[ORM\Column(length100nullabletrue)]
  56.     private ?string $numeroPosicion null;
  57.     #[ORM\Column(length255nullabletrue)]
  58.     private ?string $archivo null;
  59.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComex')]
  60.     private ?DocDocumento $documento null;
  61.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComexDisponibilidad')]
  62.     private ?ParEstado $disponibilidad null;
  63.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  64.     private ?\DateTimeInterface $fechaVencimiento null;
  65.     #[ORM\OneToMany(mappedBy'do'targetEntityJurOperacionSospechosa::class)]
  66.     private Collection $operacionSospechosa;
  67.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  68.     private ?\DateTimeInterface $fechaAperturaDO null;
  69.     public function __construct()
  70.     {
  71.         $this->operacionSospechosa = new ArrayCollection();
  72.     }
  73.     public function __toString() {
  74.         return $this->getDocumento()->getNombre() . " " $this->getNumeroDO();
  75.     }
  76.     public function getId(): ?int {
  77.         return $this->id;
  78.     }
  79.     public function getNumeroDO(): ?string {
  80.         return $this->numeroDO;
  81.     }
  82.     public function setNumeroDO(string $numeroDO): static {
  83.         $this->numeroDO $numeroDO;
  84.         return $this;
  85.     }
  86.     public function getCliente(): ?TerEmpresaCliente {
  87.         return $this->cliente;
  88.     }
  89.     public function setCliente(?TerEmpresaCliente $cliente): static {
  90.         $this->cliente $cliente;
  91.         return $this;
  92.     }
  93.     public function getNumeroDOAsociado(): ?string {
  94.         return $this->numeroDOAsociado;
  95.     }
  96.     public function setNumeroDOAsociado(string $numeroDOAsociado): static {
  97.         $this->numeroDOAsociado $numeroDOAsociado;
  98.         return $this;
  99.     }
  100.     public function getAsociadoNegocio(): ?TerAsociado {
  101.         return $this->asociadoNegocio;
  102.     }
  103.     public function setAsociadoNegocio(?TerAsociado $asociadoNegocio): static {
  104.         $this->asociadoNegocio $asociadoNegocio;
  105.         return $this;
  106.     }
  107.     public function getSede(): ?TerSedeEmpresa {
  108.         return $this->sede;
  109.     }
  110.     public function setSede(?TerSedeEmpresa $sede): static {
  111.         $this->sede $sede;
  112.         return $this;
  113.     }
  114.     public function getTipoOperacion(): ?ParTipoOperacion {
  115.         return $this->tipoOperacion;
  116.     }
  117.     public function setTipoOperacion(?ParTipoOperacion $tipoOperacion): static {
  118.         $this->tipoOperacion $tipoOperacion;
  119.         return $this;
  120.     }
  121.     public function getFechaLevante(): ?\DateTimeInterface {
  122.         return $this->fechaLevante;
  123.     }
  124.     public function setFechaLevante(\DateTimeInterface $fechaLevante): static {
  125.         $this->fechaLevante $fechaLevante;
  126.         return $this;
  127.     }
  128.     public function getFechaVencimientoIMPEXP(): ?\DateTimeInterface {
  129.         return $this->fechaVencimientoIMPEXP;
  130.     }
  131.     public function setFechaVencimientoIMPEXP(?\DateTimeInterface $fechaVencimientoIMPEXP): static {
  132.         $this->fechaVencimientoIMPEXP $fechaVencimientoIMPEXP;
  133.         return $this;
  134.     }
  135.     public function getTomo(): ?float {
  136.         return $this->tomo;
  137.     }
  138.     public function setTomo(float $tomo): static {
  139.         $this->tomo $tomo;
  140.         return $this;
  141.     }
  142.     public function getFolio(): array
  143.     {
  144.         return $this->folio ?? [];
  145.     }
  146.     public function setFolio(array $folio): static
  147.     {
  148.         $this->folio $folio;
  149.         return $this;
  150.     }
  151.     public function getObservacion(): ?string {
  152.         return $this->observacion;
  153.     }
  154.     public function setObservacion(?string $observacion): static {
  155.         $this->observacion $observacion;
  156.         return $this;
  157.     }
  158.     public function getFUID(): ?RFFUID {
  159.         return $this->FUID;
  160.     }
  161.     public function setFUID(?RFFUID $FUID): static {
  162.         $this->FUID $FUID;
  163.         return $this;
  164.     }
  165.     public function getEstado(): ?ParEstado {
  166.         return $this->estado;
  167.     }
  168.     public function setEstado(?ParEstado $estado): static {
  169.         $this->estado $estado;
  170.         return $this;
  171.     }
  172.     public function getCreateAt(): ?\DateTimeInterface {
  173.         return $this->createAt;
  174.     }
  175.     public function setCreateAt(\DateTimeInterface $createAt): static {
  176.         $this->createAt $createAt;
  177.         return $this;
  178.     }
  179.     public function getCreateUser(): ?string {
  180.         return $this->createUser;
  181.     }
  182.     public function setCreateUser(string $createUser): static {
  183.         $this->createUser $createUser;
  184.         return $this;
  185.     }
  186.     public function getUpdateAt(): ?\DateTimeInterface {
  187.         return $this->updateAt;
  188.     }
  189.     public function setUpdateAt(\DateTimeInterface $updateAt): static {
  190.         $this->updateAt $updateAt;
  191.         return $this;
  192.     }
  193.     public function getUpdateUser(): ?string {
  194.         return $this->updateUser;
  195.     }
  196.     public function setUpdateUser(string $updateUser): static {
  197.         $this->updateUser $updateUser;
  198.         return $this;
  199.     }
  200.     public function getTipoUbicacion(): ?ParTipoUbicacion {
  201.         return $this->tipoUbicacion;
  202.     }
  203.     public function setTipoUbicacion(?ParTipoUbicacion $tipoUbicacion): static {
  204.         $this->tipoUbicacion $tipoUbicacion;
  205.         return $this;
  206.     }
  207.     public function getNumeroPosicion(): ?string {
  208.         return $this->numeroPosicion;
  209.     }
  210.     public function setNumeroPosicion(?string $numeroPosicion): static {
  211.         $this->numeroPosicion $numeroPosicion;
  212.         return $this;
  213.     }
  214.     public function getArchivo(): ?string {
  215.         return $this->archivo;
  216.     }
  217.     public function setArchivo(?string $archivo): static {
  218.         $this->archivo $archivo;
  219.         return $this;
  220.     }
  221.     public function getDocumento(): ?DocDocumento {
  222.         return $this->documento;
  223.     }
  224.     public function setDocumento(?DocDocumento $documento): static {
  225.         $this->documento $documento;
  226.         return $this;
  227.     }
  228.     public function getDisponibilidad(): ?ParEstado {
  229.         return $this->disponibilidad;
  230.     }
  231.     public function setDisponibilidad(?ParEstado $disponibilidad): static {
  232.         $this->disponibilidad $disponibilidad;
  233.         return $this;
  234.     }
  235.     public function getFechaVencimiento(): ?\DateTimeInterface {
  236.         return $this->fechaVencimiento;
  237.     }
  238.     public function setFechaVencimiento(?\DateTimeInterface $fechaVencimiento): static {
  239.         $this->fechaVencimiento $fechaVencimiento;
  240.         return $this;
  241.     }
  242.     /**
  243.      * @return Collection<int, JurOperacionSospechosa>
  244.      */
  245.     public function getOperacionSospechosa(): Collection
  246.     {
  247.         return $this->operacionSospechosa;
  248.     }
  249.     public function addOperacionSospechosa(JurOperacionSospechosa $operacionSospechosa): static
  250.     {
  251.         if (!$this->operacionSospechosa->contains($operacionSospechosa)) {
  252.             $this->operacionSospechosa->add($operacionSospechosa);
  253.             $operacionSospechosa->setDo($this);
  254.         }
  255.         return $this;
  256.     }
  257.     public function removeOperacionSospechosa(JurOperacionSospechosa $operacionSospechosa): static
  258.     {
  259.         if ($this->operacionSospechosa->removeElement($operacionSospechosa)) {
  260.             // set the owning side to null (unless already changed)
  261.             if ($operacionSospechosa->getDo() === $this) {
  262.                 $operacionSospechosa->setDo(null);
  263.             }
  264.         }
  265.         return $this;
  266.     }
  267.     public function getFechaAperturaDO(): ?\DateTimeInterface
  268.     {
  269.         return $this->fechaAperturaDO;
  270.     }
  271.     public function setFechaAperturaDO(?\DateTimeInterface $fechaAperturaDO): static
  272.     {
  273.         $this->fechaAperturaDO $fechaAperturaDO;
  274.         return $this;
  275.     }
  276. }