src/Entity/AssociatedDocument.php line 21
<?php/** @author Guerby Duval <info@tranzaksyon.com>* @link https://tranzaksyon.com* @copyright You are not allowed to remove this author "Guerby Duval <info@tranzaksyon.com>", the link "https://tranzaksyon.com" neither this copyright.*/namespace App\Entity;use App\Repository\AssociatedDocumentRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;use Symfony\Component\Serializer\Annotation\SerializedName;use Symfony\Component\Validator\Constraints\NotNull;#[ORM\Entity(repositoryClass: AssociatedDocumentRepository::class)]//gCamDEAsocclass AssociatedDocument{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]#[Groups(['associated_document_out'])]private ?int $id = null;#[ORM\Column]#[SerializedName('iTipDocAso')]#[Groups(['associated_document_sifen_out', 'associated_document_out', 'associated_document_in'])]#[NotNull]private ?int $tipoDocumento = null;#[ORM\Column(length: 30)]#[Groups(['associated_document_out', 'associated_document_in'])]#[NotNull]private ?string $descTipoDocumento = null;#[ORM\Column(length: 44, nullable: true)]#[Groups(['associated_document_out', 'associated_document_in'])]private ?string $cdc = null;#[ORM\Column(length: 8, nullable: true)]#[Groups(['associated_document_out', 'associated_document_in'])]private ?string $timbrado = null;#[ORM\Column(length: 3, nullable: true)]#[Groups(['associated_document_out', 'associated_document_in'])]private ?string $establecimiento = null;#[ORM\Column(length: 3, nullable: true)]#[Groups(['associated_document_out', 'associated_document_in'])]private ?string $puntoExpedicion = null;#[ORM\Column(length: 15, nullable: true)]#[Groups(['associated_document_out', 'associated_document_in'])]private ?string $numeroResolucionCreditoFiscal = null;#[ORM\ManyToOne(inversedBy: 'associatedDocuments')]#[Groups(['associated_document_out', 'associated_document_in'])]#[NotNull]private ?Invoice $invoice = null;#[ORM\Column(type: Types::SMALLINT, nullable: true)]#[Groups(['associated_document_out', 'associated_document_in'])]private ?int $tipoConstancia = null;#[ORM\Column(length: 50, nullable: true)]#[Groups(['associated_document_out', 'associated_document_in'])]private ?string $tipoConstanciaDesc = null;#[ORM\Column(length: 11, nullable: true)]#[Groups(['associated_document_out', 'associated_document_in'])]private ?string $numeroConstancia = null;#[ORM\Column(length: 8, nullable: true)]#[Groups(['associated_document_out', 'associated_document_in'])]private ?string $numeroControlConstancia = null;public function getId(): ?int{return $this->id;}public function getTipoDocumento(): ?int{return $this->tipoDocumento;}public function setTipoDocumento(int $tipoDocumento): static{$this->tipoDocumento = $tipoDocumento;return $this;}public function getDescTipoDocumento(): ?string{return $this->descTipoDocumento;}public function setDescTipoDocumento(string $descTipoDocumento): static{$this->descTipoDocumento = $descTipoDocumento;return $this;}public function getCdc(): ?string{return $this->cdc;}public function setCdc(?string $cdc): static{$this->cdc = $cdc;return $this;}public function getTimbrado(): ?string{return $this->timbrado;}public function setTimbrado(?string $timbrado): static{$this->timbrado = $timbrado;return $this;}public function getEstablecimiento(): ?string{return $this->establecimiento;}public function setEstablecimiento(?string $establecimiento): static{$this->establecimiento = $establecimiento;return $this;}public function getPuntoExpedicion(): ?string{return $this->puntoExpedicion;}public function setPuntoExpedicion(?string $puntoExpedicion): static{$this->puntoExpedicion = $puntoExpedicion;return $this;}public function getNumeroResolucionCreditoFiscal(): ?string{return $this->numeroResolucionCreditoFiscal;}public function setNumeroResolucionCreditoFiscal(?string $numeroResolucionCreditoFiscal): static{$this->numeroResolucionCreditoFiscal = $numeroResolucionCreditoFiscal;return $this;}public function getInvoice(): ?Invoice{return $this->invoice;}public function setInvoice(?Invoice $invoice): static{$this->invoice = $invoice;return $this;}public function getTipoConstancia(): ?int{return $this->tipoConstancia;}public function setTipoConstancia(?int $tipoConstancia): static{$this->tipoConstancia = $tipoConstancia;return $this;}public function getTipoConstanciaDesc(): ?string{return $this->tipoConstanciaDesc;}public function setTipoConstanciaDesc(?string $tipoConstanciaDesc): static{$this->tipoConstanciaDesc = $tipoConstanciaDesc;return $this;}public function getNumeroConstancia(): ?string{return $this->numeroConstancia;}public function setNumeroConstancia(?string $numeroConstancia): static{$this->numeroConstancia = $numeroConstancia;return $this;}public function getNumeroControlConstancia(): ?string{return $this->numeroControlConstancia;}public function setNumeroControlConstancia(?string $numeroControlConstancia): static{$this->numeroControlConstancia = $numeroControlConstancia;return $this;}////////////////// SIFEN /////////////////////#[SerializedName('dDesTipDocAso')]#[Groups(['associated_document_sifen_out'])]public function getDescTipoDocumentoSifen(): ?string{return $this->descTipoDocumento;}#[SerializedName('dCdCDERef')]#[Groups(['associated_document_sifen_electronica_out'])]public function getCdcSifen(): ?string{return $this->cdc;}#[SerializedName('iTipCons')]#[Groups(['associated_document_sifen_constancia_out'])]public function getiTipCons(){return $this->getTipoConstancia();}#[SerializedName('dDesTipCons')]#[Groups(['associated_document_sifen_constancia_out'])]public function getdDesTipCons(){return $this->getTipoConstanciaDesc();}#[SerializedName('dNumCons')]#[Groups(['associated_document_sifen_constancia_microproductores_out'])]public function getdNumCons(){return $this->getNumeroConstancia();}#[SerializedName('dNumControl')]#[Groups(['associated_document_sifen_constancia_microproductores_out'])]public function getdNumControl(){return $this->getNumeroControlConstancia();}}