src/Entity/Gos/WebinarNotification.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\WebinarNotificationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=WebinarNotificationRepository::class)
  7.  * @ORM\HasLifecycleCallbacks
  8.  */
  9. class WebinarNotification
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $reginfo;
  21.     /**
  22.      * @ORM\Column(type="boolean", options={"default": 1})
  23.      */
  24.     private $sendWelcomeMessage true;
  25.     /**
  26.      * @ORM\Column(type="string", length=255)
  27.      */
  28.     private $welcomeMessage 'Witaj {name}, dziękujemy za zapis na webinar. Otrzymasz przypomnienie SMS przed startem wydarzenia.';
  29.     /**
  30.      * @ORM\Column(type="boolean", options={"default": 1})
  31.      */
  32.     private $sendReminderMessage true;
  33.     /**
  34.      * @ORM\Column(type="string", length=255)
  35.      */
  36.     private $reminderMessage 'Witaj {name}, webinar rusza za 15 minut. Dołącz do transmisji na {joinLink}.';
  37.     /**
  38.      * @ORM\Column(type="datetime")
  39.      */
  40.     private $createdAt;
  41.     /**
  42.      * @ORM\Column(type="datetime", nullable=true)
  43.      */
  44.     private $updatedAt;
  45.     /** @ORM\PrePersist() */
  46.     public function onPrePersist()
  47.     {
  48.         $this->createdAt = new \DateTime();
  49.     }
  50.     /** @ORM\PreUpdate() */
  51.     public function onPreUpdate()
  52.     {
  53.         $this->updatedAt = new \DateTime();
  54.     }
  55.     public function getId(): ?int
  56.     {
  57.         return $this->id;
  58.     }
  59.     public function getReginfo(): ?string
  60.     {
  61.         return $this->reginfo;
  62.     }
  63.     public function setReginfo(string $reginfo): self
  64.     {
  65.         $this->reginfo $reginfo;
  66.         return $this;
  67.     }
  68.     public function getSendWelcomeMessage(): ?bool
  69.     {
  70.         return $this->sendWelcomeMessage;
  71.     }
  72.     public function setSendWelcomeMessage(bool $sendWelcomeMessage): self
  73.     {
  74.         $this->sendWelcomeMessage $sendWelcomeMessage;
  75.         return $this;
  76.     }
  77.     public function getWelcomeMessage(): ?string
  78.     {
  79.         return $this->welcomeMessage;
  80.     }
  81.     public function setWelcomeMessage(string $welcomeMessage): self
  82.     {
  83.         $this->welcomeMessage $welcomeMessage;
  84.         return $this;
  85.     }
  86.     public function getSendReminderMessage(): ?bool
  87.     {
  88.         return $this->sendReminderMessage;
  89.     }
  90.     public function setSendReminderMessage(string $sendReminderMessage): self
  91.     {
  92.         $this->sendReminderMessage $sendReminderMessage;
  93.         return $this;
  94.     }
  95.     public function getReminderMessage(): ?string
  96.     {
  97.         return $this->reminderMessage;
  98.     }
  99.     public function setReminderMessage(string $reminderMessage): self
  100.     {
  101.         $this->reminderMessage $reminderMessage;
  102.         return $this;
  103.     }
  104.     public function getCreatedAt()
  105.     {
  106.         return $this->createdAt;
  107.     }
  108.     public function setCreatedAt($createdAt): self
  109.     {
  110.         $this->createdAt $createdAt;
  111.         return $this;
  112.     }
  113.     public function getUpdatedAt()
  114.     {
  115.         return $this->updatedAt;
  116.     }
  117.     public function setUpdatedAt($updatedAt): self
  118.     {
  119.         $this->updatedAt $updatedAt;
  120.         return $this;
  121.     }
  122. }