src/Entity/Documento.php line 12
<?phpnamespace App\Entity;use App\Repository\DocumentoRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DocumentoRepository::class)]class Documento{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $nome = null;#[ORM\Column(length: 255, nullable: true)]private ?string $conteiner = null;#[ORM\Column(length: 255, nullable: true)]private ?string $image = null;#[ORM\Column]private ?\DateTimeImmutable $createdAt = null;#[ORM\Column(nullable: true)]private ?int $qtd = null;#[ORM\Column(nullable: true)]private ?int $qtd1 = null;#[ORM\ManyToOne(inversedBy: 'documentos')]private ?User $user = null;#[ORM\Column(nullable: true)]private ?\DateTimeImmutable $updatedAt = null;#[ORM\Column(length: 255)]private ?string $assunto = null;#[ORM\ManyToOne(inversedBy: 'documentos')]private ?Cliente $cliente = null;#[ORM\ManyToOne(inversedBy: 'documentos')]private ?Caixa $caixa = null;#[ORM\ManyToOne(inversedBy: 'documentos')]private ?Classificacao $classificacao = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $dataDocumento = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $vencimentoDocumento = null;#[ORM\Column(length: 255, nullable: true)]private ?string $extraFields = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $keywords = null;#[ORM\ManyToOne(inversedBy: 'documentos')]private ?Tipo $tipo = null;#[ORM\Column(nullable: true)]private ?\DateTimeImmutable $indexAt = null;#[ORM\Column(length: 255, nullable: true)]private ?string $user_index = null;#[ORM\OneToMany(mappedBy: 'documento', targetEntity: Registro::class)]private Collection $registros;#[ORM\OneToMany(mappedBy: 'documento', targetEntity: Etapa::class)]private Collection $etapas;#[ORM\ManyToOne(inversedBy: 'documentos')]private ?Etapa $etapa = null;#[ORM\Column(length: 255, nullable: true)]private ?string $situacao = null;public function __construct(){$this->createdAt = new \DateTimeImmutable('America/Sao_Paulo');$this->registros = new ArrayCollection();$this->etapas = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getConteiner(): ?string{return $this->conteiner;}public function setConteiner(string $conteiner): static{$this->conteiner = $conteiner;return $this;}public function getNome(): ?string{return $this->nome;}public function setNome(string $nome): static{$this->nome = $nome;return $this;}public function getImage(): ?string{return $this->image;}public function setImage(?string $image): static{$this->image = $image;return $this;}public function getCreatedAt(): ?\DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(\DateTimeImmutable $createdAt): static{$this->createdAt = $createdAt;return $this;}public function getQtd(): ?int{return $this->qtd;}public function setQtd(?int $qtd): static{$this->qtd = $qtd;return $this;}public function getQtd1(): ?int{return $this->qtd1;}public function setQtd1(?int $qtd1): static{$this->qtd1 = $qtd1;return $this;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): static{$this->user = $user;return $this;}public function getUpdatedAt(): ?\DateTimeImmutable{return $this->updatedAt;}public function setUpdatedAt(?\DateTimeImmutable $updatedAt): static{$this->updateAt = $updatedAt;return $this;}public function getAssunto(): ?string{return $this->assunto;}public function setAssunto(string $assunto): static{$this->assunto = $assunto;return $this;}public function getCliente(): ?Cliente{return $this->cliente;}public function setCliente(?Cliente $cliente): static{$this->cliente = $cliente;return $this;}public function getCaixa(): ?Caixa{return $this->caixa;}public function setCaixa(?Caixa $caixa): static{$this->caixa = $caixa;return $this;}public function getClassificacao(): ?Classificacao{return $this->classificacao;}public function setClassificacao(?Classificacao $classificacao): static{$this->classificacao = $classificacao;return $this;}public function getDataDocumento(): ?\DateTimeInterface{return $this->dataDocumento;}public function setDataDocumento(?\DateTimeInterface $dataDocumento): static{$this->dataDocumento = $dataDocumento;return $this;}public function getVencimentoDocumento(): ?\DateTimeInterface{return $this->vencimentoDocumento;}public function setVencimentoDocumento(?\DateTimeInterface $vencimentoDocumento): static{$this->vencimentoDocumento = $vencimentoDocumento;return $this;}public function getExtraFields(): ?string{return $this->extraFields;}public function setExtraFields(?string $extraFields): static{$this->extraFields = $extraFields;return $this;}public function getKeywords(): ?string{return $this->keywords;}public function setKeywords(?string $keywords): static{$this->keywords = $keywords;return $this;}public function getTipo(): ?Tipo{return $this->tipo;}public function setTipo(?Tipo $tipo): static{$this->tipo = $tipo;return $this;}public function getIndexAt(): ?\DateTimeImmutable{return $this->indexAt;}public function setIndexAt(?\DateTimeImmutable $indexAt): static{$this->indexAt = $indexAt;return $this;}public function getUserIndex(): ?string{return $this->user_index;}public function setUserIndex(?string $user_index): static{$this->user_index = $user_index;return $this;}/*** @return Collection<int, Registro>*/public function getRegistros(): Collection{return $this->registros;}public function addRegistro(Registro $registro): static{if (!$this->registros->contains($registro)) {$this->registros->add($registro);$registro->setDocumento($this);}return $this;}public function removeRegistro(Registro $registro): static{if ($this->registros->removeElement($registro)) {// set the owning side to null (unless already changed)if ($registro->getDocumento() === $this) {$registro->setDocumento(null);}}return $this;}/*** @return Collection<int, Etapa>*/public function getEtapas(): Collection{return $this->etapas;}public function addEtapa(Etapa $etapa): static{if (!$this->etapas->contains($etapa)) {$this->etapas->add($etapa);$etapa->setDocumento($this);}return $this;}public function removeEtapa(Etapa $etapa): static{if ($this->etapas->removeElement($etapa)) {// set the owning side to null (unless already changed)if ($etapa->getDocumento() === $this) {$etapa->setDocumento(null);}}return $this;}public function getEtapa(): ?Etapa{return $this->etapa;}public function setEtapa(?Etapa $etapa): static{$this->etapa = $etapa;return $this;}public function getSituacao(): ?string{return $this->situacao;}public function setSituacao(?string $situacao): static{$this->situacao = $situacao;return $this;}}