src/Entity/ChatbotCompanyPrompt.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChatbotCompanyPromptRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassChatbotCompanyPromptRepository::class)]
  6. class ChatbotCompanyPrompt
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'chatbotCompanyPrompts')]
  13.     #[ORM\JoinColumn(nullablefalseuniquetrue)]
  14.     private ?Company $company null;
  15.     #[ORM\Column(length50000type'text')]
  16.     private ?string $prompt null;
  17.     #[ORM\ManyToOne(inversedBy'chatbotCompanyPrompts')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?User $createdBy null;
  20.     #[ORM\Column]
  21.     private ?\DateTimeImmutable $createdAt null;
  22.     #[ORM\Column(nullabletrue)]
  23.     private ?\DateTimeImmutable $updatedAt null;
  24.     #[ORM\ManyToOne(inversedBy'chatbotCompanyPrompts')]
  25.     private ?User $updatedBy null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getCompany(): ?Company
  31.     {
  32.         return $this->company;
  33.     }
  34.     public function setCompany(?Company $company): self
  35.     {
  36.         $this->company $company;
  37.         return $this;
  38.     }
  39.     public function getPrompt(): ?string
  40.     {
  41.         return $this->prompt;
  42.     }
  43.     public function setPrompt(string $prompt): self
  44.     {
  45.         $this->prompt $prompt;
  46.         return $this;
  47.     }
  48.     public function getCreatedBy(): ?User
  49.     {
  50.         return $this->createdBy;
  51.     }
  52.     public function setCreatedBy(?User $createdBy): self
  53.     {
  54.         $this->createdBy $createdBy;
  55.         return $this;
  56.     }
  57.     public function getCreatedAt(): ?\DateTimeImmutable
  58.     {
  59.         return $this->createdAt;
  60.     }
  61.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  62.     {
  63.         $this->createdAt $createdAt;
  64.         return $this;
  65.     }
  66.     public function getUpdatedAt(): ?\DateTimeImmutable
  67.     {
  68.         return $this->updatedAt;
  69.     }
  70.     public function setUpdatedAt(?\DateTimeImmutable $updatedAt): self
  71.     {
  72.         $this->updatedAt $updatedAt;
  73.         return $this;
  74.     }
  75.     public function getUpdatedBy(): ?User
  76.     {
  77.         return $this->updatedBy;
  78.     }
  79.     public function setUpdatedBy(?User $updatedBy): self
  80.     {
  81.         $this->updatedBy $updatedBy;
  82.         return $this;
  83.     }
  84. }