<?phpnamespace App\Entity\Gos;use App\Repository\Gos\WebinarNotificationRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=WebinarNotificationRepository::class) * @ORM\HasLifecycleCallbacks */class WebinarNotification{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $reginfo; /** * @ORM\Column(type="boolean", options={"default": 1}) */ private $sendWelcomeMessage = true; /** * @ORM\Column(type="string", length=255) */ private $welcomeMessage = 'Witaj {name}, dziękujemy za zapis na webinar. Otrzymasz przypomnienie SMS przed startem wydarzenia.'; /** * @ORM\Column(type="boolean", options={"default": 1}) */ private $sendReminderMessage = true; /** * @ORM\Column(type="string", length=255) */ private $reminderMessage = 'Witaj {name}, webinar rusza za 15 minut. Dołącz do transmisji na {joinLink}.'; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** @ORM\PrePersist() */ public function onPrePersist() { $this->createdAt = new \DateTime(); } /** @ORM\PreUpdate() */ public function onPreUpdate() { $this->updatedAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getReginfo(): ?string { return $this->reginfo; } public function setReginfo(string $reginfo): self { $this->reginfo = $reginfo; return $this; } public function getSendWelcomeMessage(): ?bool { return $this->sendWelcomeMessage; } public function setSendWelcomeMessage(bool $sendWelcomeMessage): self { $this->sendWelcomeMessage = $sendWelcomeMessage; return $this; } public function getWelcomeMessage(): ?string { return $this->welcomeMessage; } public function setWelcomeMessage(string $welcomeMessage): self { $this->welcomeMessage = $welcomeMessage; return $this; } public function getSendReminderMessage(): ?bool { return $this->sendReminderMessage; } public function setSendReminderMessage(string $sendReminderMessage): self { $this->sendReminderMessage = $sendReminderMessage; return $this; } public function getReminderMessage(): ?string { return $this->reminderMessage; } public function setReminderMessage(string $reminderMessage): self { $this->reminderMessage = $reminderMessage; return $this; } public function getCreatedAt() { return $this->createdAt; } public function setCreatedAt($createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt() { return $this->updatedAt; } public function setUpdatedAt($updatedAt): self { $this->updatedAt = $updatedAt; return $this; }}