<?php
namespace App\Entity;
use App\Repository\ChatbotPromptRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ChatbotPromptRepository::class)]
class ChatbotPrompt
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $title = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $prompt = null;
#[ORM\ManyToOne(inversedBy: 'chatbotPrompts')]
#[ORM\JoinColumn(nullable: false)]
private ?ChatbotSection $ChatbotSection = null;
#[ORM\ManyToOne(inversedBy: 'chatbotPrompts')]
private ?User $createdBy = null;
#[ORM\Column]
private ?\DateTimeImmutable $createdAt = null;
#[ORM\Column(nullable: true)]
private ?\DateTimeImmutable $deletedAt = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $description = null;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getPrompt(): ?string
{
return $this->prompt;
}
public function setPrompt(string $prompt): self
{
$this->prompt = $prompt;
return $this;
}
public function getChatbotSection(): ?ChatbotSection
{
return $this->ChatbotSection;
}
public function setChatbotSection(?ChatbotSection $ChatbotSection): self
{
$this->ChatbotSection = $ChatbotSection;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->createdBy;
}
public function setCreatedBy(?User $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getDeletedAt(): ?\DateTimeImmutable
{
return $this->deletedAt;
}
public function setDeletedAt(?\DateTimeImmutable $deletedAt): self
{
$this->deletedAt = $deletedAt;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
}