src/Entity/Telegram/AgentPublicBot/BotNotification.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Telegram\AgentPublicBot;
  3. use App\Entity\BaseEntity;
  4. use App\Repository\Telegram\AgentPublicBot\BotNotificationRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  8. #[ORM\Entity(repositoryClassBotNotificationRepository::class)]
  9. class BotNotification extends BaseEntity
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\Column(type'guid'uniquetrue)]
  13.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  14.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  15.     private ?string $id null;
  16.     #[ORM\ManyToOne(inversedBy'botNotifications')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?Bot $bot null;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $message null;
  21.     #[ORM\Column]
  22.     private ?bool $isSent null;
  23.     public function getId(): ?string
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getBot(): ?Bot
  28.     {
  29.         return $this->bot;
  30.     }
  31.     public function setBot(?Bot $bot): static
  32.     {
  33.         $this->bot $bot;
  34.         return $this;
  35.     }
  36.     public function getMessage(): ?string
  37.     {
  38.         return $this->message;
  39.     }
  40.     public function setMessage(string $message): static
  41.     {
  42.         $this->message $message;
  43.         return $this;
  44.     }
  45.     public function isIsSent(): ?bool
  46.     {
  47.         return $this->isSent;
  48.     }
  49.     public function setIsSent(bool $isSent): static
  50.     {
  51.         $this->isSent $isSent;
  52.         return $this;
  53.     }
  54. }