src/Entity/Prompt.php line 11
<?phpnamespace App\Entity;use App\Repository\PromptRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: PromptRepository::class)]class Prompt{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255, nullable: true)]private ?string $nome = null;#[ORM\Column(length: 255, nullable: true)]private ?string $assunto = null;#[ORM\Column(length: 255, nullable: true)]private ?string $keywords = null;#[ORM\Column(length: 255, nullable: true)]private ?string $data_documento = null;#[ORM\Column(length: 255, nullable: true)]private ?string $tipos = null;#[ORM\Column(length: 255, nullable: true)]private ?string $classificacoes = null;#[ORM\ManyToOne(inversedBy: 'prompts')]private ?User $user = null;#[ORM\ManyToOne(inversedBy: 'prompts')]private ?Cliente $cliente = null;#[ORM\Column]private ?\DateTimeImmutable $createdAt = null;#[ORM\Column(nullable: true)]private ?\DateTimeImmutable $updateAt = null;/*** @var Collection<int, Etapa>*/#[ORM\OneToMany(targetEntity: Etapa::class, mappedBy: 'prompt')]private Collection $etapas;#[ORM\Column(length: 255, nullable: true)]private ?string $letras = null;public function __construct(){$this->etapas = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getNome(): ?string{return $this->nome;}public function setNome(?string $nome): static{$this->nome = $nome;return $this;}public function getAssunto(): ?string{return $this->assunto;}public function setAssunto(?string $assunto): static{$this->assunto = $assunto;return $this;}public function getKeywords(): ?string{return $this->keywords;}public function setKeywords(?string $keywords): static{$this->keywords = $keywords;return $this;}public function getDataDocumento(): ?string{return $this->data_documento;}public function setDataDocumento(?string $data_documento): static{$this->data_documento = $data_documento;return $this;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): static{$this->user = $user;return $this;}public function getCliente(): ?Cliente{return $this->cliente;}public function setCliente(?Cliente $cliente): static{$this->cliente = $cliente;return $this;}public function getTipos(): ?string{return $this->tipos;}public function setTipos(?string $tipos): static{$this->tipos = $tipos;return $this;}public function getClassificacoes(): ?string{return $this->classificacoes;}public function setClassificacoes(?string $classificacoes): static{$this->classificacoes = $classificacoes;return $this;}public function getCreatedAt(): ?\DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(\DateTimeImmutable $createdAt): static{$this->createdAt = $createdAt;return $this;}public function getUpdateAt(): ?\DateTimeImmutable{return $this->updateAt;}public function setUpdateAt(?\DateTimeImmutable $updateAt): static{$this->updateAt = $updateAt;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->setPrompt($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->getPrompt() === $this) {$etapa->setPrompt(null);}}return $this;}public function getLetras(): ?string{return $this->letras;}public function setLetras(?string $letras): static{$this->letras = $letras;return $this;}}