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