<?php
namespace App\Entity;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="scheduled_notifications", indexes={
* @ORM\Index(name="pro_users", columns={"pro_users"})
* })
* @ORM\Entity(repositoryClass="App\Repository\ScheduledNotificationsRepository")
*/
class ScheduledNotifications
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="notification_title", type="text")
*/
private $notificationTitle;
/**
* @var string
*
* @ORM\Column(name="notification_title_en", type="text")
*/
private $notificationTitleEn;
/**
* @var string
*
* @ORM\Column(name="notification_body", type="text")
*/
private $notificationBody;
/**
* @var string
*
* @ORM\Column(name="notification_body_en", type="text")
*/
private $notificationBodyEn;
/**
* @var string
*
* @ORM\Column(name="notification_preview", type="text", nullable=true)
*/
private $notificationPreview;
/**
* @var string
*
* @ORM\Column(name="notification_preview_en", type="text", nullable=true)
*/
private $notificationPreviewEn;
/**
* @var int
*
* @ORM\Column(name="forward_to", type="integer", nullable=true)
*/
private $forwardTo;
/**
* @var DateTime
*
* @ORM\Column(name="scheduled_at", type="datetime")
*/
private $scheduledAt;
/**
* @var DateTime
*
* @ORM\Column(name="runned_at", type="datetime", nullable=true)
*/
private $runnedAt;
/**
* @var DateTime
*
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var DateTime
*
* @ORM\Column(name="removed_at", type="datetime", nullable=true)
*/
private $removedAt;
/**
* @ORM\Column(type="boolean")
*/
private $pro_users;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set notificationTitle
*
* @param string $notificationTitle
*
* @return ScheduledNotifications
*/
public function setNotificationTitle($notificationTitle)
{
$this->notificationTitle = $notificationTitle;
return $this;
}
/**
* Get notificationTitle
*
* @return string
*/
public function getNotificationTitle()
{
return $this->notificationTitle;
}
/**
* @return string
*/
public function getNotificationTitleEn()
{
return $this->notificationTitleEn;
}
/**
* @param string $notificationTitleEn
*/
public function setNotificationTitleEn($notificationTitleEn)
{
$this->notificationTitleEn = $notificationTitleEn;
}
/**
* Set notificationBody
*
* @param string $notificationBody
*
* @return ScheduledNotifications
*/
public function setNotificationBody($notificationBody)
{
$this->notificationBody = $notificationBody;
return $this;
}
/**
* Get notificationBody
*
* @return string
*/
public function getNotificationBody()
{
return $this->notificationBody;
}
/**
* @return string
*/
public function getNotificationBodyEn()
{
return $this->notificationBodyEn;
}
/**
* @param string $notificationBodyEn
*/
public function setNotificationBodyEn($notificationBodyEn)
{
$this->notificationBodyEn = $notificationBodyEn;
}
/**
* Set notificationPreview
*
* @param string $notificationPreview
*
* @return ScheduledNotifications
*/
public function setNotificationPreview($notificationPreview)
{
$this->notificationPreview = $notificationPreview;
return $this;
}
/**
* Get notificationPreview
*
* @return string
*/
public function getNotificationPreview()
{
return $this->notificationPreview;
}
/**
* @return string
*/
public function getNotificationPreviewEn()
{
return $this->notificationPreviewEn;
}
/**
* @param string $notificationPreviewEn
*/
public function setNotificationPreviewEn($notificationPreviewEn)
{
$this->notificationPreviewEn = $notificationPreviewEn;
}
public function setForwardTo($forwardTo)
{
$this->forwardTo = $forwardTo;
return $this;
}
/**
* Get forwardTo
*
* @return int
*/
public function getForwardTo()
{
return $this->forwardTo;
}
/**
* Set scheduledAt
*
* @param DateTime $scheduledAt
*
* @return ScheduledNotifications
*/
public function setScheduledAt($scheduledAt)
{
$this->scheduledAt = $scheduledAt;
return $this;
}
/**
* Get scheduledAt
*
* @return DateTime
*/
public function getScheduledAt()
{
return $this->scheduledAt;
}
/**
* Set runnedAt
*
* @param DateTime $runnedAt
*
* @return ScheduledNotifications
*/
public function setRunnedAt($runnedAt)
{
$this->runnedAt = $runnedAt;
return $this;
}
/**
* Get runnedAt
*
* @return DateTime
*/
public function getRunnedAt()
{
return $this->runnedAt;
}
/**
* Set createdAt
*
* @param DateTime $createdAt
*
* @return ScheduledNotifications
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
public function setRemovedAt(?DateTime $removedAt)
{
$this->removedAt = $removedAt;
return $this;
}
/**
* Get removedAt
*
* @return DateTime
*/
public function getRemovedAt()
{
return $this->removedAt;
}
public function isProUsers(): ?bool
{
return $this->pro_users;
}
public function setProUsers(bool $pro_users): self
{
$this->pro_users = $pro_users;
return $this;
}
}