src/Entity/AssociatedDocument.php line 21

  1. <?php
  2. /*
  3.  *  @author Guerby Duval <info@tranzaksyon.com>
  4.  *  @link https://tranzaksyon.com
  5.  *  @copyright You are not allowed to remove this author "Guerby Duval <info@tranzaksyon.com>", the link "https://tranzaksyon.com" neither this copyright.
  6.  */
  7. namespace App\Entity;
  8. use App\Repository\AssociatedDocumentRepository;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. use Doctrine\Common\Collections\Collection;
  11. use Doctrine\DBAL\Types\Types;
  12. use Doctrine\ORM\Mapping as ORM;
  13. use Symfony\Component\Serializer\Annotation\Groups;
  14. use Symfony\Component\Serializer\Annotation\SerializedName;
  15. use Symfony\Component\Validator\Constraints\NotNull;
  16. #[ORM\Entity(repositoryClassAssociatedDocumentRepository::class)]
  17. //gCamDEAsoc
  18. class AssociatedDocument
  19. {
  20.     #[ORM\Id]
  21.     #[ORM\GeneratedValue]
  22.     #[ORM\Column]
  23.     #[Groups(['associated_document_out'])]
  24.     private ?int $id null;
  25.     #[ORM\Column]
  26.     #[SerializedName('iTipDocAso')]
  27.     #[Groups(['associated_document_sifen_out''associated_document_out''associated_document_in'])]
  28.     #[NotNull]
  29.     private ?int $tipoDocumento null;
  30.     #[ORM\Column(length30)]
  31.     #[Groups(['associated_document_out''associated_document_in'])]
  32.     #[NotNull]
  33.     private ?string $descTipoDocumento null;
  34.     #[ORM\Column(length44nullabletrue)]
  35.     #[Groups(['associated_document_out''associated_document_in'])]
  36.     private ?string $cdc null;
  37.     #[ORM\Column(length8nullabletrue)]
  38.     #[Groups(['associated_document_out''associated_document_in'])]
  39.     private ?string $timbrado null;
  40.     #[ORM\Column(length3nullabletrue)]
  41.     #[Groups(['associated_document_out''associated_document_in'])]
  42.     private ?string $establecimiento null;
  43.     #[ORM\Column(length3nullabletrue)]
  44.     #[Groups(['associated_document_out''associated_document_in'])]
  45.     private ?string $puntoExpedicion null;
  46.     #[ORM\Column(length15nullabletrue)]
  47.     #[Groups(['associated_document_out''associated_document_in'])]
  48.     private ?string $numeroResolucionCreditoFiscal null;
  49.     #[ORM\ManyToOne(inversedBy'associatedDocuments')]
  50.     #[Groups(['associated_document_out''associated_document_in'])]
  51.     #[NotNull]
  52.     private ?Invoice $invoice null;
  53.     #[ORM\Column(typeTypes::SMALLINTnullabletrue)]
  54.     #[Groups(['associated_document_out''associated_document_in'])]
  55.     private ?int $tipoConstancia null;
  56.     #[ORM\Column(length50nullabletrue)]
  57.     #[Groups(['associated_document_out''associated_document_in'])]
  58.     private ?string $tipoConstanciaDesc null;
  59.     #[ORM\Column(length11nullabletrue)]
  60.     #[Groups(['associated_document_out''associated_document_in'])]
  61.     private ?string $numeroConstancia null;
  62.     #[ORM\Column(length8nullabletrue)]
  63.     #[Groups(['associated_document_out''associated_document_in'])]
  64.     private ?string $numeroControlConstancia null;
  65.     public function getId(): ?int
  66.     {
  67.         return $this->id;
  68.     }
  69.     public function getTipoDocumento(): ?int
  70.     {
  71.         return $this->tipoDocumento;
  72.     }
  73.     public function setTipoDocumento(int $tipoDocumento): static
  74.     {
  75.         $this->tipoDocumento $tipoDocumento;
  76.         return $this;
  77.     }
  78.     public function getDescTipoDocumento(): ?string
  79.     {
  80.         return $this->descTipoDocumento;
  81.     }
  82.     public function setDescTipoDocumento(string $descTipoDocumento): static
  83.     {
  84.         $this->descTipoDocumento $descTipoDocumento;
  85.         return $this;
  86.     }
  87.     public function getCdc(): ?string
  88.     {
  89.         return $this->cdc;
  90.     }
  91.     public function setCdc(?string $cdc): static
  92.     {
  93.         $this->cdc $cdc;
  94.         return $this;
  95.     }
  96.     public function getTimbrado(): ?string
  97.     {
  98.         return $this->timbrado;
  99.     }
  100.     public function setTimbrado(?string $timbrado): static
  101.     {
  102.         $this->timbrado $timbrado;
  103.         return $this;
  104.     }
  105.     public function getEstablecimiento(): ?string
  106.     {
  107.         return $this->establecimiento;
  108.     }
  109.     public function setEstablecimiento(?string $establecimiento): static
  110.     {
  111.         $this->establecimiento $establecimiento;
  112.         return $this;
  113.     }
  114.     public function getPuntoExpedicion(): ?string
  115.     {
  116.         return $this->puntoExpedicion;
  117.     }
  118.     public function setPuntoExpedicion(?string $puntoExpedicion): static
  119.     {
  120.         $this->puntoExpedicion $puntoExpedicion;
  121.         return $this;
  122.     }
  123.     public function getNumeroResolucionCreditoFiscal(): ?string
  124.     {
  125.         return $this->numeroResolucionCreditoFiscal;
  126.     }
  127.     public function setNumeroResolucionCreditoFiscal(?string $numeroResolucionCreditoFiscal): static
  128.     {
  129.         $this->numeroResolucionCreditoFiscal $numeroResolucionCreditoFiscal;
  130.         return $this;
  131.     }
  132.     public function getInvoice(): ?Invoice
  133.     {
  134.         return $this->invoice;
  135.     }
  136.     public function setInvoice(?Invoice $invoice): static
  137.     {
  138.         $this->invoice $invoice;
  139.         return $this;
  140.     }
  141.     public function getTipoConstancia(): ?int
  142.     {
  143.         return $this->tipoConstancia;
  144.     }
  145.     public function setTipoConstancia(?int $tipoConstancia): static
  146.     {
  147.         $this->tipoConstancia $tipoConstancia;
  148.         return $this;
  149.     }
  150.     public function getTipoConstanciaDesc(): ?string
  151.     {
  152.         return $this->tipoConstanciaDesc;
  153.     }
  154.     public function setTipoConstanciaDesc(?string $tipoConstanciaDesc): static
  155.     {
  156.         $this->tipoConstanciaDesc $tipoConstanciaDesc;
  157.         return $this;
  158.     }
  159.     public function getNumeroConstancia(): ?string
  160.     {
  161.         return $this->numeroConstancia;
  162.     }
  163.     public function setNumeroConstancia(?string $numeroConstancia): static
  164.     {
  165.         $this->numeroConstancia $numeroConstancia;
  166.         return $this;
  167.     }
  168.     public function getNumeroControlConstancia(): ?string
  169.     {
  170.         return $this->numeroControlConstancia;
  171.     }
  172.     public function setNumeroControlConstancia(?string $numeroControlConstancia): static
  173.     {
  174.         $this->numeroControlConstancia $numeroControlConstancia;
  175.         return $this;
  176.     }
  177.     ////////////////// SIFEN /////////////////////
  178.     #[SerializedName('dDesTipDocAso')]
  179.     #[Groups(['associated_document_sifen_out'])]
  180.     public function getDescTipoDocumentoSifen(): ?string
  181.     {
  182.         return $this->descTipoDocumento;
  183.     }
  184.     #[SerializedName('dCdCDERef')]
  185.     #[Groups(['associated_document_sifen_electronica_out'])]
  186.     public function getCdcSifen(): ?string
  187.     {
  188.         return $this->cdc;
  189.     }
  190.     #[SerializedName('iTipCons')]
  191.     #[Groups(['associated_document_sifen_constancia_out'])]
  192.     public function getiTipCons()
  193.     {
  194.         return $this->getTipoConstancia();
  195.     }
  196.     #[SerializedName('dDesTipCons')]
  197.     #[Groups(['associated_document_sifen_constancia_out'])]
  198.     public function getdDesTipCons()
  199.     {
  200.         return $this->getTipoConstanciaDesc();
  201.     }
  202.     #[SerializedName('dNumCons')]
  203.     #[Groups(['associated_document_sifen_constancia_microproductores_out'])]
  204.     public function getdNumCons()
  205.     {
  206.         return $this->getNumeroConstancia();
  207.     }
  208.     #[SerializedName('dNumControl')]
  209.     #[Groups(['associated_document_sifen_constancia_microproductores_out'])]
  210.     public function getdNumControl()
  211.     {
  212.         return $this->getNumeroControlConstancia();
  213.     }
  214. }