src/Entity/Gos/Consultant/ConsultantChatBase.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos\Consultant;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\MappedSuperclass()
  6.  * @ORM\HasLifecycleCallbacks()
  7.  */
  8. abstract class ConsultantChatBase
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=36, unique=true)
  18.      */
  19.     private $uuid;
  20.     /**
  21.      * @ORM\Column(type="datetime")
  22.      */
  23.     private $createdAt;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $issueName;
  28.     /**
  29.      * @ORM\Column(type="json")
  30.      */
  31.     private $chatbotData = [];
  32.     /** @ORM\PrePersist() */
  33.     public function prePersist()
  34.     {
  35.         $this->createdAt = new \DateTime();
  36.     }
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getUuid(): ?string
  42.     {
  43.         return $this->uuid;
  44.     }
  45.     public function setUuid(string $uuid): self
  46.     {
  47.         $this->uuid $uuid;
  48.         return $this;
  49.     }
  50.     public function getCreatedAt(): ?\DateTimeInterface
  51.     {
  52.         return $this->createdAt;
  53.     }
  54.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  55.     {
  56.         $this->createdAt $createdAt;
  57.         return $this;
  58.     }
  59.     public function getIssueName(): ?string
  60.     {
  61.         return $this->issueName;
  62.     }
  63.     public function setIssueName(string $issueName): self
  64.     {
  65.         $this->issueName $issueName;
  66.         return $this;
  67.     }
  68.     public function getChatbotData(): ?array
  69.     {
  70.         return $this->chatbotData;
  71.     }
  72.     public function setChatbotData(array $chatbotData): self
  73.     {
  74.         $this->chatbotData $chatbotData;
  75.         return $this;
  76.     }
  77. }