src/Entity/ChatbotFaq.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChatbotFaqRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassChatbotFaqRepository::class)]
  7. class ChatbotFaq
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'chatbotFaqs')]
  14.     private ?User $updatedBy null;
  15.     #[ORM\Column(nullabletrue)]
  16.     private ?\DateTimeImmutable $updatedAt null;
  17.     #[ORM\Column(typeTypes::TEXT)]
  18.     private ?string $content null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getUpdatedBy(): ?User
  24.     {
  25.         return $this->updatedBy;
  26.     }
  27.     public function setUpdatedBy(?User $updatedBy): self
  28.     {
  29.         $this->updatedBy $updatedBy;
  30.         return $this;
  31.     }
  32.     public function getUpdatedAt(): ?\DateTimeImmutable
  33.     {
  34.         return $this->updatedAt;
  35.     }
  36.     public function setUpdatedAt(?\DateTimeImmutable $updatedAt): self
  37.     {
  38.         $this->updatedAt $updatedAt;
  39.         return $this;
  40.     }
  41.     public function getContent(): ?string
  42.     {
  43.         return $this->content;
  44.     }
  45.     public function setContent(string $content): self
  46.     {
  47.         $this->content $content;
  48.         return $this;
  49.     }
  50. }