<?phpnamespace App\Entity;use App\Repository\TelegramMessageRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=TelegramMessageRepository::class) */class TelegramMessage{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="text") */ private $data; /** * @ORM\Column(type="boolean", nullable=true) */ private $isBot = false; /** * @ORM\Column(type="string") */ private $chatId; /** * @ORM\Column(type="integer") */ private $messageId; /** * @ORM\Column(type="boolean", nullable=true) */ private $isDeleted; /** * @ORM\Column(type="text", nullable=true) */ private $text; /** * @ORM\Column(type="string", nullable=true) */ private $userId; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $username; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $name; /** * @ORM\Column(type="datetime") */ private $dateTime; public function getId(): int { return $this->id; } public function getData(): ?array { if (!$this->data) { return null; } return json_decode($this->data, true); } public function setData(string $data): self { $this->data = $data; return $this; } public function isIsBot(): ?bool { return $this->isBot; } public function setIsBot(?bool $isBot): self { $this->isBot = $isBot; return $this; } public function getChatId(): ?string { return $this->chatId; } public function setChatId(string $chatId): self { $this->chatId = $chatId; return $this; } public function getMessageId(): ?int { return $this->messageId; } public function setMessageId(int $messageId): self { $this->messageId = $messageId; return $this; } public function isIsDeleted(): ?bool { return $this->isDeleted; } public function setIsDeleted(?bool $isDeleted): self { $this->isDeleted = $isDeleted; return $this; } public function getText(): ?string { return $this->text; } public function setText(?string $text): self { $this->text = $text; return $this; } public function getUserId(): ?string { return $this->userId; } public function setUserId(?string $userId): self { $this->userId = $userId; return $this; } public function getUsername(): ?string { return $this->username; } public function setUsername(?string $username): self { $this->username = $username; return $this; } public function getName(): ?string { return $this->name; } public function setName(?string $name): self { $this->name = $name; return $this; } public function getDateTime(): ?\DateTimeInterface { return $this->dateTime; } public function setDateTime(\DateTimeInterface $dateTime): self { $this->dateTime = $dateTime; return $this; }}