src/Entity/RFInventarioDocumentalComercial.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RFInventarioDocumentalComercialRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Table(name'rf_inventario_documental_comercial')]
  7. #[ORM\Entity(repositoryClassRFInventarioDocumentalComercialRepository::class)]
  8. class RFInventarioDocumentalComercial {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $nit null;
  15.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComercial')]
  16.     private ?TerEmpresaCliente $cliente null;
  17.     #[ORM\Column]
  18.     private ?int $anoDocumento null;
  19.     #[ORM\Column]
  20.     private ?float $tomo null;
  21.     #[ORM\Column(typeTypes::JSONnullabletrue)]
  22.     private $folio = [];
  23.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComercial')]
  24.     private ?RFFUID $FUID null;
  25.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComercial')]
  26.     private ?ParEstado $estado 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\ManyToOne(inversedBy'inventarioDocumentalComercial')]
  36.     private ?ParTipoUbicacion $tipoUbicacion null;
  37.     #[ORM\Column(length100nullabletrue)]
  38.     private ?string $numeroPosicion null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $archivo null;
  41.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComercial')]
  42.     private ?DocDocumento $documento null;
  43.     #[ORM\ManyToOne(inversedBy'inventarioDocumentalComercialDisponibilidad')]
  44.     private ?ParEstado $disponibilidad null;
  45.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  46.     private ?\DateTimeInterface $fechaVencimiento null;
  47.     
  48.     public function __toString() {
  49.         return $this->getDocumento()->getNombre()." ".$this->getNit();
  50.     }
  51.     public function getId(): ?int {
  52.         return $this->id;
  53.     }
  54.     public function getNit(): ?string {
  55.         return $this->nit;
  56.     }
  57.     public function setNit(string $nit): static {
  58.         $this->nit $nit;
  59.         return $this;
  60.     }
  61.     public function getCliente(): ?TerEmpresaCliente {
  62.         return $this->cliente;
  63.     }
  64.     public function setCliente(?TerEmpresaCliente $cliente): static {
  65.         $this->cliente $cliente;
  66.         return $this;
  67.     }
  68.     public function getAnoDocumento(): ?int {
  69.         return $this->anoDocumento;
  70.     }
  71.     public function setAnoDocumento(int $anoDocumento): static {
  72.         $this->anoDocumento $anoDocumento;
  73.         return $this;
  74.     }
  75.     public function getTomo(): ?float {
  76.         return $this->tomo;
  77.     }
  78.     public function setTomo(float $tomo): static {
  79.         $this->tomo $tomo;
  80.         return $this;
  81.     }
  82.     public function getFolio()
  83.     {
  84.         return $this->folio ?? [];
  85.     }
  86.     public function setFolio($folio): static
  87.     {
  88.         $this->folio $folio;
  89.         return $this;
  90.     }
  91.     public function getFUID(): ?RFFUID {
  92.         return $this->FUID;
  93.     }
  94.     public function setFUID(?RFFUID $FUID): static {
  95.         $this->FUID $FUID;
  96.         return $this;
  97.     }
  98.     public function getEstado(): ?ParEstado {
  99.         return $this->estado;
  100.     }
  101.     public function setEstado(?ParEstado $estado): static {
  102.         $this->estado $estado;
  103.         return $this;
  104.     }
  105.     public function getCreateAt(): ?\DateTimeInterface {
  106.         return $this->createAt;
  107.     }
  108.     public function setCreateAt(\DateTimeInterface $createAt): static {
  109.         $this->createAt $createAt;
  110.         return $this;
  111.     }
  112.     public function getCreateUser(): ?string {
  113.         return $this->createUser;
  114.     }
  115.     public function setCreateUser(string $createUser): static {
  116.         $this->createUser $createUser;
  117.         return $this;
  118.     }
  119.     public function getUpdateAt(): ?\DateTimeInterface {
  120.         return $this->updateAt;
  121.     }
  122.     public function setUpdateAt(\DateTimeInterface $updateAt): static {
  123.         $this->updateAt $updateAt;
  124.         return $this;
  125.     }
  126.     public function getUpdateUser(): ?string {
  127.         return $this->updateUser;
  128.     }
  129.     public function setUpdateUser(string $updateUser): static {
  130.         $this->updateUser $updateUser;
  131.         return $this;
  132.     }
  133.     public function getTipoUbicacion(): ?ParTipoUbicacion {
  134.         return $this->tipoUbicacion;
  135.     }
  136.     public function setTipoUbicacion(?ParTipoUbicacion $tipoUbicacion): static {
  137.         $this->tipoUbicacion $tipoUbicacion;
  138.         return $this;
  139.     }
  140.     public function getNumeroPosicion(): ?string {
  141.         return $this->numeroPosicion;
  142.     }
  143.     public function setNumeroPosicion(?string $numeroPosicion): static {
  144.         $this->numeroPosicion $numeroPosicion;
  145.         return $this;
  146.     }
  147.     public function getArchivo(): ?string {
  148.         return $this->archivo;
  149.     }
  150.     public function setArchivo(?string $archivo): static {
  151.         $this->archivo $archivo;
  152.         return $this;
  153.     }
  154.     public function getDocumento(): ?DocDocumento {
  155.         return $this->documento;
  156.     }
  157.     public function setDocumento(?DocDocumento $documento): static {
  158.         $this->documento $documento;
  159.         return $this;
  160.     }
  161.     public function getDisponibilidad(): ?ParEstado {
  162.         return $this->disponibilidad;
  163.     }
  164.     public function setDisponibilidad(?ParEstado $disponibilidad): static {
  165.         $this->disponibilidad $disponibilidad;
  166.         return $this;
  167.     }
  168.     public function getFechaVencimiento(): ?\DateTimeInterface {
  169.         return $this->fechaVencimiento;
  170.     }
  171.     public function setFechaVencimiento(?\DateTimeInterface $fechaVencimiento): static {
  172.         $this->fechaVencimiento $fechaVencimiento;
  173.         return $this;
  174.     }
  175. }