src/Entity/ScheduledNotifications.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTime;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="scheduled_notifications", indexes={
  7.  *     @ORM\Index(name="pro_users", columns={"pro_users"})
  8.  * })
  9.  * @ORM\Entity(repositoryClass="App\Repository\ScheduledNotificationsRepository")
  10.  */
  11. class ScheduledNotifications
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="notification_title", type="text")
  25.      */
  26.     private $notificationTitle;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="notification_title_en", type="text")
  31.      */
  32.     private $notificationTitleEn;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="notification_body", type="text")
  37.      */
  38.     private $notificationBody;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="notification_body_en", type="text")
  43.      */
  44.     private $notificationBodyEn;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="notification_preview", type="text", nullable=true)
  49.      */
  50.     private $notificationPreview;
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="notification_preview_en", type="text", nullable=true)
  55.      */
  56.     private $notificationPreviewEn;
  57.     /**
  58.      * @var int
  59.      *
  60.      * @ORM\Column(name="forward_to", type="integer", nullable=true)
  61.      */
  62.     private $forwardTo;
  63.     /**
  64.      * @var DateTime
  65.      *
  66.      * @ORM\Column(name="scheduled_at", type="datetime")
  67.      */
  68.     private $scheduledAt;
  69.     /**
  70.      * @var DateTime
  71.      *
  72.      * @ORM\Column(name="runned_at", type="datetime", nullable=true)
  73.      */
  74.     private $runnedAt;
  75.     /**
  76.      * @var DateTime
  77.      *
  78.      * @ORM\Column(name="created_at", type="datetime")
  79.      */
  80.     private $createdAt;
  81.     /**
  82.      * @var DateTime
  83.      *
  84.      * @ORM\Column(name="removed_at", type="datetime", nullable=true)
  85.      */
  86.     private $removedAt;
  87.     /**
  88.      * @ORM\Column(type="boolean")
  89.      */
  90.     private $pro_users;
  91.     /**
  92.      * Get id
  93.      *
  94.      * @return int
  95.      */
  96.     public function getId()
  97.     {
  98.         return $this->id;
  99.     }
  100.     /**
  101.      * Set notificationTitle
  102.      *
  103.      * @param string $notificationTitle
  104.      *
  105.      * @return ScheduledNotifications
  106.      */
  107.     public function setNotificationTitle($notificationTitle)
  108.     {
  109.         $this->notificationTitle $notificationTitle;
  110.         return $this;
  111.     }
  112.     /**
  113.      * Get notificationTitle
  114.      *
  115.      * @return string
  116.      */
  117.     public function getNotificationTitle()
  118.     {
  119.         return $this->notificationTitle;
  120.     }
  121.     /**
  122.      * @return string
  123.      */
  124.     public function getNotificationTitleEn()
  125.     {
  126.         return $this->notificationTitleEn;
  127.     }
  128.     /**
  129.      * @param string $notificationTitleEn
  130.      */
  131.     public function setNotificationTitleEn($notificationTitleEn)
  132.     {
  133.         $this->notificationTitleEn $notificationTitleEn;
  134.     }
  135.     /**
  136.      * Set notificationBody
  137.      *
  138.      * @param string $notificationBody
  139.      *
  140.      * @return ScheduledNotifications
  141.      */
  142.     public function setNotificationBody($notificationBody)
  143.     {
  144.         $this->notificationBody $notificationBody;
  145.         return $this;
  146.     }
  147.     /**
  148.      * Get notificationBody
  149.      *
  150.      * @return string
  151.      */
  152.     public function getNotificationBody()
  153.     {
  154.         return $this->notificationBody;
  155.     }
  156.     /**
  157.      * @return string
  158.      */
  159.     public function getNotificationBodyEn()
  160.     {
  161.         return $this->notificationBodyEn;
  162.     }
  163.     /**
  164.      * @param string $notificationBodyEn
  165.      */
  166.     public function setNotificationBodyEn($notificationBodyEn)
  167.     {
  168.         $this->notificationBodyEn $notificationBodyEn;
  169.     }
  170.     /**
  171.      * Set notificationPreview
  172.      *
  173.      * @param string $notificationPreview
  174.      *
  175.      * @return ScheduledNotifications
  176.      */
  177.     public function setNotificationPreview($notificationPreview)
  178.     {
  179.         $this->notificationPreview $notificationPreview;
  180.         return $this;
  181.     }
  182.     /**
  183.      * Get notificationPreview
  184.      *
  185.      * @return string
  186.      */
  187.     public function getNotificationPreview()
  188.     {
  189.         return $this->notificationPreview;
  190.     }
  191.     /**
  192.      * @return string
  193.      */
  194.     public function getNotificationPreviewEn()
  195.     {
  196.         return $this->notificationPreviewEn;
  197.     }
  198.     /**
  199.      * @param string $notificationPreviewEn
  200.      */
  201.     public function setNotificationPreviewEn($notificationPreviewEn)
  202.     {
  203.         $this->notificationPreviewEn $notificationPreviewEn;
  204.     }
  205.     public function setForwardTo($forwardTo)
  206.     {
  207.         $this->forwardTo $forwardTo;
  208.         return $this;
  209.     }
  210.     /**
  211.      * Get forwardTo
  212.      *
  213.      * @return int
  214.      */
  215.     public function getForwardTo()
  216.     {
  217.         return $this->forwardTo;
  218.     }
  219.     /**
  220.      * Set scheduledAt
  221.      *
  222.      * @param DateTime $scheduledAt
  223.      *
  224.      * @return ScheduledNotifications
  225.      */
  226.     public function setScheduledAt($scheduledAt)
  227.     {
  228.         $this->scheduledAt $scheduledAt;
  229.         return $this;
  230.     }
  231.     /**
  232.      * Get scheduledAt
  233.      *
  234.      * @return DateTime
  235.      */
  236.     public function getScheduledAt()
  237.     {
  238.         return $this->scheduledAt;
  239.     }
  240.     /**
  241.      * Set runnedAt
  242.      *
  243.      * @param DateTime $runnedAt
  244.      *
  245.      * @return ScheduledNotifications
  246.      */
  247.     public function setRunnedAt($runnedAt)
  248.     {
  249.         $this->runnedAt $runnedAt;
  250.         return $this;
  251.     }
  252.     /**
  253.      * Get runnedAt
  254.      *
  255.      * @return DateTime
  256.      */
  257.     public function getRunnedAt()
  258.     {
  259.         return $this->runnedAt;
  260.     }
  261.     /**
  262.      * Set createdAt
  263.      *
  264.      * @param DateTime $createdAt
  265.      *
  266.      * @return ScheduledNotifications
  267.      */
  268.     public function setCreatedAt($createdAt)
  269.     {
  270.         $this->createdAt $createdAt;
  271.         return $this;
  272.     }
  273.     /**
  274.      * Get createdAt
  275.      *
  276.      * @return DateTime
  277.      */
  278.     public function getCreatedAt()
  279.     {
  280.         return $this->createdAt;
  281.     }
  282.     public function setRemovedAt(?DateTime $removedAt)
  283.     {
  284.         $this->removedAt $removedAt;
  285.         return $this;
  286.     }
  287.     /**
  288.      * Get removedAt
  289.      *
  290.      * @return DateTime
  291.      */
  292.     public function getRemovedAt()
  293.     {
  294.         return $this->removedAt;
  295.     }
  296.     public function isProUsers(): ?bool
  297.     {
  298.         return $this->pro_users;
  299.     }
  300.     public function setProUsers(bool $pro_users): self
  301.     {
  302.         $this->pro_users $pro_users;
  303.         return $this;
  304.     }
  305. }