<?php
namespace App\Entity\Telegram\AgentPublicBot;
use App\Entity\BaseEntity;
use App\Repository\Telegram\AgentPublicBot\BotNotificationRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
#[ORM\Entity(repositoryClass: BotNotificationRepository::class)]
class BotNotification extends BaseEntity
{
#[ORM\Id]
#[ORM\Column(type: 'guid', unique: true)]
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
#[ORM\CustomIdGenerator(class: UuidGenerator::class)]
private ?string $id = null;
#[ORM\ManyToOne(inversedBy: 'botNotifications')]
#[ORM\JoinColumn(nullable: false)]
private ?Bot $bot = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $message = null;
#[ORM\Column]
private ?bool $isSent = null;
public function getId(): ?string
{
return $this->id;
}
public function getBot(): ?Bot
{
return $this->bot;
}
public function setBot(?Bot $bot): static
{
$this->bot = $bot;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(string $message): static
{
$this->message = $message;
return $this;
}
public function isIsSent(): ?bool
{
return $this->isSent;
}
public function setIsSent(bool $isSent): static
{
$this->isSent = $isSent;
return $this;
}
}