src/Entity/ChatbotPrompt.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChatbotPromptRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassChatbotPromptRepository::class)]
  7. class ChatbotPrompt
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $title null;
  15.     #[ORM\Column(typeTypes::TEXT)]
  16.     private ?string $prompt null;
  17.     #[ORM\ManyToOne(inversedBy'chatbotPrompts')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?ChatbotSection $ChatbotSection null;
  20.     #[ORM\ManyToOne(inversedBy'chatbotPrompts')]
  21.     private ?User $createdBy null;
  22.     #[ORM\Column]
  23.     private ?\DateTimeImmutable $createdAt null;
  24.     #[ORM\Column(nullabletrue)]
  25.     private ?\DateTimeImmutable $deletedAt null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $description null;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getTitle(): ?string
  33.     {
  34.         return $this->title;
  35.     }
  36.     public function setTitle(string $title): self
  37.     {
  38.         $this->title $title;
  39.         return $this;
  40.     }
  41.     public function getPrompt(): ?string
  42.     {
  43.         return $this->prompt;
  44.     }
  45.     public function setPrompt(string $prompt): self
  46.     {
  47.         $this->prompt $prompt;
  48.         return $this;
  49.     }
  50.     public function getChatbotSection(): ?ChatbotSection
  51.     {
  52.         return $this->ChatbotSection;
  53.     }
  54.     public function setChatbotSection(?ChatbotSection $ChatbotSection): self
  55.     {
  56.         $this->ChatbotSection $ChatbotSection;
  57.         return $this;
  58.     }
  59.     public function getCreatedBy(): ?User
  60.     {
  61.         return $this->createdBy;
  62.     }
  63.     public function setCreatedBy(?User $createdBy): self
  64.     {
  65.         $this->createdBy $createdBy;
  66.         return $this;
  67.     }
  68.     public function getCreatedAt(): ?\DateTimeImmutable
  69.     {
  70.         return $this->createdAt;
  71.     }
  72.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  73.     {
  74.         $this->createdAt $createdAt;
  75.         return $this;
  76.     }
  77.     public function getDeletedAt(): ?\DateTimeImmutable
  78.     {
  79.         return $this->deletedAt;
  80.     }
  81.     public function setDeletedAt(?\DateTimeImmutable $deletedAt): self
  82.     {
  83.         $this->deletedAt $deletedAt;
  84.         return $this;
  85.     }
  86.     public function getDescription(): ?string
  87.     {
  88.         return $this->description;
  89.     }
  90.     public function setDescription(?string $description): self
  91.     {
  92.         $this->description $description;
  93.         return $this;
  94.     }
  95. }