src/Entity/Documento.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocumentoRepository;
  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. #[ORM\Entity(repositoryClass: DocumentoRepository::class)]
  9. class Documento
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id = null;
  15.     #[ORM\Column(length: 255)]
  16.     private ?string $nome = null;
  17.     #[ORM\Column(length: 255, nullable: true)]
  18.     private ?string $conteiner = null;
  19.     #[ORM\Column(length: 255, nullable: true)]
  20.     private ?string $image = null;
  21.     #[ORM\Column]
  22.     private ?\DateTimeImmutable $createdAt = null;
  23.     #[ORM\Column(nullable: true)]
  24.     private ?int $qtd = null;
  25.     
  26.     #[ORM\Column(nullable: true)]
  27.     private ?int $qtd1 = null;
  28.     #[ORM\ManyToOne(inversedBy: 'documentos')]
  29.     private ?User $user = null;
  30.     #[ORM\Column(nullable: true)]
  31.     private ?\DateTimeImmutable $updatedAt = null;
  32.     #[ORM\Column(length: 255)]
  33.     private ?string $assunto = null;
  34.     #[ORM\ManyToOne(inversedBy: 'documentos')]
  35.     private ?Cliente $cliente = null;
  36.     #[ORM\ManyToOne(inversedBy: 'documentos')]
  37.     private ?Caixa $caixa = null;
  38.     #[ORM\ManyToOne(inversedBy: 'documentos')]
  39.     private ?Classificacao $classificacao = null;
  40.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  41.     private ?\DateTimeInterface $dataDocumento = null;
  42.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  43.     private ?\DateTimeInterface $vencimentoDocumento = null;
  44.     #[ORM\Column(length: 255, nullable: true)]
  45.     private ?string $extraFields = null;
  46.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  47.     private ?string $keywords = null;
  48.     #[ORM\ManyToOne(inversedBy: 'documentos')]
  49.     private ?Tipo $tipo = null;
  50.     #[ORM\Column(nullable: true)]
  51.     private ?\DateTimeImmutable $indexAt = null;
  52.     #[ORM\Column(length: 255, nullable: true)]
  53.     private ?string $user_index = null;
  54.     #[ORM\OneToMany(mappedBy: 'documento', targetEntity: Registro::class)]
  55.     private Collection $registros;
  56.     #[ORM\OneToMany(mappedBy: 'documento', targetEntity: Etapa::class)]
  57.     private Collection $etapas;
  58.     #[ORM\ManyToOne(inversedBy: 'documentos')]
  59.     private ?Etapa $etapa = null;
  60.     
  61.     #[ORM\Column(length: 255, nullable: true)]
  62.     private ?string $situacao = null;
  63.     
  64.     #[ORM\Column(length: 1255, nullable: true)]
  65.     private ?string $ocr = null;
  66.     #[ORM\Column(length: 1255, nullable: true)]
  67.     private ?string $imgs = null;
  68.     #[ORM\Column(nullable: true)]
  69.     private ?int $renomear = null;
  70.     
  71.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  72.     private ?string $movimentacao = null;
  73.     
  74.     #[ORM\Column(length: 1255, nullable: true)]
  75.     private ?string $assertividadeIa = null;
  76.     
  77.     
  78.     public function __construct()
  79.     {
  80.         $this->createdAt = new \DateTimeImmutable('America/Sao_Paulo');
  81.         $this->registros = new ArrayCollection();
  82.         $this->etapas = new ArrayCollection();
  83.       
  84.     }
  85.     
  86.     
  87.     public function getId(): ?int
  88.     {
  89.         return $this->id;
  90.     }
  91.     
  92.     public function getConteiner(): ?string
  93.     {
  94.         return $this->conteiner;
  95.     }
  96.     public function setConteiner(string $conteiner): static
  97.     {
  98.         $this->conteiner = $conteiner;
  99.         return $this;
  100.     }
  101.     public function getNome(): ?string
  102.     {
  103.         return $this->nome;
  104.     }
  105.     public function setNome(string $nome): static
  106.     {
  107.         $this->nome = $nome;
  108.         return $this;
  109.     }
  110.     public function getImage(): ?string
  111.     {
  112.         return $this->image;
  113.     }
  114.     public function setImage(?string $image): static
  115.     {
  116.         $this->image = $image;
  117.         return $this;
  118.     }
  119.     public function getCreatedAt(): ?\DateTimeImmutable
  120.     {
  121.         return $this->createdAt;
  122.     }
  123.     public function setCreatedAt(\DateTimeImmutable $createdAt): static
  124.     {
  125.         $this->createdAt = $createdAt;
  126.         return $this;
  127.     }
  128.     public function getQtd(): ?int
  129.     {
  130.         return $this->qtd;
  131.     }
  132.     public function setQtd(?int $qtd): static
  133.     {
  134.         $this->qtd = $qtd;
  135.         return $this;
  136.     }
  137.     
  138.      public function getQtd1(): ?int
  139.     {
  140.         return $this->qtd1;
  141.     }
  142.     public function setQtd1(?int $qtd1): static
  143.     {
  144.         $this->qtd1 = $qtd1;
  145.         return $this;
  146.     }
  147.     public function getUser(): ?User
  148.     {
  149.         return $this->user;
  150.     }
  151.     public function setUser(?User $user): static
  152.     {
  153.         $this->user = $user;
  154.         return $this;
  155.     }
  156.     public function getUpdatedAt(): ?\DateTimeImmutable
  157.     {
  158.         return $this->updatedAt;
  159.     }
  160.     public function setUpdatedAt(?\DateTimeImmutable $updatedAt): static
  161.     {
  162.         $this->updateAt = $updatedAt;
  163.         return $this;
  164.     }
  165.     public function getAssunto(): ?string
  166.     {
  167.         return $this->assunto;
  168.     }
  169.     public function setAssunto(string $assunto): static
  170.     {
  171.         $this->assunto = $assunto;
  172.         return $this;
  173.     }
  174.     public function getCliente(): ?Cliente
  175.     {
  176.         return $this->cliente;
  177.     }
  178.     public function setCliente(?Cliente $cliente): static
  179.     {
  180.         $this->cliente = $cliente;
  181.         return $this;
  182.     }
  183.     public function getCaixa(): ?Caixa
  184.     {
  185.         return $this->caixa;
  186.     }
  187.     public function setCaixa(?Caixa $caixa): static
  188.     {
  189.         $this->caixa = $caixa;
  190.         return $this;
  191.     }
  192.     public function getClassificacao(): ?Classificacao
  193.     {
  194.         return $this->classificacao;
  195.     }
  196.     public function setClassificacao(?Classificacao $classificacao): static
  197.     {
  198.         $this->classificacao = $classificacao;
  199.         return $this;
  200.     }
  201.     public function getDataDocumento(): ?\DateTimeInterface
  202.     {
  203.         return $this->dataDocumento;
  204.     }
  205.     public function setDataDocumento(?\DateTimeInterface $dataDocumento): static
  206.     {
  207.         $this->dataDocumento = $dataDocumento;
  208.         return $this;
  209.     }
  210.     public function getVencimentoDocumento(): ?\DateTimeInterface
  211.     {
  212.         return $this->vencimentoDocumento;
  213.     }
  214.     public function setVencimentoDocumento(?\DateTimeInterface $vencimentoDocumento): static
  215.     {
  216.         $this->vencimentoDocumento = $vencimentoDocumento;
  217.         return $this;
  218.     }
  219.     public function getExtraFields(): ?string
  220.     {
  221.         return $this->extraFields;
  222.     }
  223.     public function setExtraFields(?string $extraFields): static
  224.     {
  225.         $this->extraFields = $extraFields;
  226.         return $this;
  227.     }
  228.     public function getKeywords(): ?string
  229.     {
  230.         return $this->keywords;
  231.     }
  232.     public function setKeywords(?string $keywords): static
  233.     {
  234.         $this->keywords = $keywords;
  235.         return $this;
  236.     }
  237.     public function getTipo(): ?Tipo
  238.     {
  239.         return $this->tipo;
  240.     }
  241.     public function setTipo(?Tipo $tipo): static
  242.     {
  243.         $this->tipo = $tipo;
  244.         return $this;
  245.     }
  246.     public function getIndexAt(): ?\DateTimeImmutable
  247.     {
  248.         return $this->indexAt;
  249.     }
  250.     public function setIndexAt(?\DateTimeImmutable $indexAt): static
  251.     {
  252.         $this->indexAt = $indexAt;
  253.         return $this;
  254.     }
  255.     public function getUserIndex(): ?string
  256.     {
  257.         return $this->user_index;
  258.     }
  259.     public function setUserIndex(?string $user_index): static
  260.     {
  261.         $this->user_index = $user_index;
  262.         return $this;
  263.     }
  264.     /**
  265.      * @return Collection<int, Registro>
  266.      */
  267.     public function getRegistros(): Collection
  268.     {
  269.         return $this->registros;
  270.     }
  271.     public function addRegistro(Registro $registro): static
  272.     {
  273.         if (!$this->registros->contains($registro)) {
  274.             $this->registros->add($registro);
  275.             $registro->setDocumento($this);
  276.         }
  277.         return $this;
  278.     }
  279.     public function removeRegistro(Registro $registro): static
  280.     {
  281.         if ($this->registros->removeElement($registro)) {
  282.             // set the owning side to null (unless already changed)
  283.             if ($registro->getDocumento() === $this) {
  284.                 $registro->setDocumento(null);
  285.             }
  286.         }
  287.         return $this;
  288.     }
  289.     /**
  290.      * @return Collection<int, Etapa>
  291.      */
  292.     public function getEtapas(): Collection
  293.     {
  294.         return $this->etapas;
  295.     }
  296.     public function addEtapa(Etapa $etapa): static
  297.     {
  298.         if (!$this->etapas->contains($etapa)) {
  299.             $this->etapas->add($etapa);
  300.             $etapa->setDocumento($this);
  301.         }
  302.         return $this;
  303.     }
  304.     public function removeEtapa(Etapa $etapa): static
  305.     {
  306.         if ($this->etapas->removeElement($etapa)) {
  307.             // set the owning side to null (unless already changed)
  308.             if ($etapa->getDocumento() === $this) {
  309.                 $etapa->setDocumento(null);
  310.             }
  311.         }
  312.         return $this;
  313.     }
  314.     public function getEtapa(): ?Etapa
  315.     {
  316.         return $this->etapa;
  317.     }
  318.     public function setEtapa(?Etapa $etapa): static
  319.     {
  320.         $this->etapa = $etapa;
  321.         return $this;
  322.     }
  323.     
  324.      public function getSituacao(): ?string
  325.     {
  326.         return $this->situacao;
  327.     }
  328.     public function setSituacao(?string $situacao): static
  329.     {
  330.         $this->situacao = $situacao;
  331.         return $this;
  332.     }
  333.     
  334.     public function setOcr(?string $ocr): static
  335.     {
  336.         $this->ocr = $ocr;
  337.         return $this;
  338.     }
  339.     public function getImgs(): ?string
  340.     {
  341.         return $this->imgs;
  342.     }
  343.     public function setImgs(?string $imgs): static
  344.     {
  345.         $this->imgs = $imgs;
  346.         return $this;
  347.     }
  348.     
  349.     public function getRenomear(): ?int
  350.     {
  351.         return $this->renomear;
  352.     }
  353.     public function setRenomear(?int $renomear): static
  354.     {
  355.         $this->renomear = $renomear;
  356.         return $this;
  357.     }
  358.     
  359.     public function getMovimentacao(): ?string
  360.     {
  361.         return $this->movimentacao;
  362.     }
  363.     public function setMovimentacao(?string $movimentacao): static
  364.     {
  365.         $this->movimentacao = $movimentacao;
  366.         return $this;
  367.     }
  368.      public function getAssertividadeIa(): ?string
  369.     {
  370.         return $this->assertividadeIa;
  371.     }
  372.     public function setAssertividadeIa(?string $assertividadeIa): static
  373.     {
  374.         $this->assertividadeIa = $assertividadeIa;
  375.         return $this;
  376.     }
  377.     
  378. }