src/Entity/SriDocument.php line 17
<?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\SriDocumentRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;use Symfony\Component\Validator\Constraints\NotBlank;#[ORM\Entity(repositoryClass: SriDocumentRepository::class)]class SriDocument{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]#[Groups(['document_out'])]private ?int $id = null;#[ORM\Column(length: 255)]#[Groups(['document_out'])]#[NotBlank(groups: ['invoice-received'])]private ?string $claveAccesso = null;#[ORM\OneToOne(inversedBy: 'sriDocument', cascade: ['persist'])]#[Groups(['document_in'])]#[NotBlank]private ?Invoice $invoice = null;#[ORM\OneToOne(mappedBy: 'document', cascade: ['persist', 'remove'])]private ?Lote $lote = null;#[ORM\Column(length: 15)]#[Groups(['document_out'])]#[NotBlank(groups: ['invoice-received'])]private ?string $secuencial = null;#[ORM\Column(length: 25, nullable: true, columnDefinition: "ENUM('APROBADO','RECHAZADO', 'EN_PROGRESO', 'CANCELLING')")]#[Groups(['document_out'])]private ?string $estado = null;#[ORM\Column(type: Types::TEXT, nullable: true)]#[Groups(['document_out'])]private ?string $error = null;#[ORM\Column(length: 3)]#[Groups(['document_out'])]#[NotBlank(groups: ['invoice-received'])]private ?string $serie1 = null;#[ORM\Column(length: 3)]#[Groups(['document_out'])]#[NotBlank(groups: ['invoice-received'])]private ?string $serie2 = null;#[ORM\Column(nullable: true)]#[Groups(['document_out', 'document_in'])]private ?bool $cancel = null;#[ORM\Column(nullable: true)]private ?bool $hasFetchError = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]#[Groups(['document_out'])]#[NotBlank(groups: ['invoice-received'])]private ?\DateTimeInterface $approvedDate = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $qr = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $xmlPath = null;public function getId(): ?int{return $this->id;}public function getClaveAccesso(): ?string{return $this->claveAccesso;}public function setClaveAccesso(string $claveAccesso): self{$this->claveAccesso = $claveAccesso;return $this;}public function getInvoice(): ?Invoice{return $this->invoice;}public function setInvoice(?Invoice $invoice): self{$this->invoice = $invoice;return $this;}public function getSecuencial(): ?string{return $this->secuencial;}public function setSecuencial(string $secuencial): self{$this->secuencial = $secuencial;return $this;}public function getEstado(): ?string{return $this->estado;}public function setEstado(?string $estado): self{$this->estado = $estado;return $this;}public function getError(): ?string{return $this->error;}public function setError(?string $error): self{$this->error = $error;return $this;}public function getSerie1(): ?string{return $this->serie1;}public function setSerie1(string $serie1): self{$this->serie1 = $serie1;return $this;}public function getSerie2(): ?string{return $this->serie2;}public function setSerie2(string $serie2): self{$this->serie2 = $serie2;return $this;}public function isCancel(): ?bool{return $this->cancel;}public function setCancel(?bool $cancel): self{$this->cancel = $cancel;return $this;}public function isHasFetchError(): ?bool{return $this->hasFetchError;}public function setHasFetchError(?bool $hasFetchError): self{$this->hasFetchError = $hasFetchError;return $this;}public function getApprovedDate(): ?\DateTimeInterface{return $this->approvedDate;}public function setApprovedDate(?\DateTimeInterface $approvedDate): static{$this->approvedDate = $approvedDate;return $this;}public function getQr(): ?string{return $this->qr;}public function setQr(?string $qr): static{$this->qr = $qr;return $this;}public function getXmlPath(): ?string{return $this->xmlPath;}public function setXmlPath(?string $xmlPath): static{$this->xmlPath = $xmlPath;return $this;}public function getLote(): ?Lote{return $this->lote;}public function setLote(Lote $lote): static{// set the owning side of the relation if necessaryif ($lote->getDocument() !== $this) {$lote->setDocument($this);}$this->lote = $lote;return $this;}}