src/Entity/UserNotifications.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. /**
  6.  * UserNotifications
  7.  *
  8.  * @ORM\Table(name="user_notifications")
  9.  * @ORM\Entity(repositoryClass="App\Repository\UserNotificationsRepository")
  10.  */
  11. class UserNotifications
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      * @Groups("data_export")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var int
  24.      *
  25.      * @ORM\Column(name="user_id", type="integer")
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\Users")
  27.      * @ORM\JoinColumn(onDelete="CASCADE")
  28.      */
  29.     private $userId;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="notification_title", type="text")
  34.      * @Groups("data_export")
  35.      */
  36.     private $notificationTitle;
  37.     /**
  38.      * @var string
  39.      *
  40.      * @ORM\Column(name="notification_body", type="text")
  41.      * @Groups("data_export")
  42.      */
  43.     private $notificationBody;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="notification_preview", type="text")
  48.      * @Groups("data_export")
  49.      */
  50.     private $notificationPreview;
  51.     /**
  52.      * @var \DateTime
  53.      *
  54.      * @ORM\Column(name="created_at", type="datetime")
  55.      * @Groups("data_export")
  56.      */
  57.     private $createdAt;
  58.     /**
  59.      * @var \DateTime
  60.      *
  61.      * @ORM\Column(name="seen_at", type="datetime", nullable=true)
  62.      */
  63.     private $seenAt;
  64.     /**
  65.      * Get id
  66.      *
  67.      * @return int
  68.      */
  69.     public function getId()
  70.     {
  71.         return $this->id;
  72.     }
  73.     /**
  74.      * Set userId
  75.      *
  76.      * @param integer $userId
  77.      *
  78.      * @return UserNotifications
  79.      */
  80.     public function setUserId($userId)
  81.     {
  82.         $this->userId $userId;
  83.         return $this;
  84.     }
  85.     /**
  86.      * Get userId
  87.      *
  88.      * @return int
  89.      */
  90.     public function getUserId()
  91.     {
  92.         return $this->userId;
  93.     }
  94.     /**
  95.      * Set notificationTitle
  96.      *
  97.      * @param string $notificationTitle
  98.      *
  99.      * @return UserNotifications
  100.      */
  101.     public function setNotificationTitle($notificationTitle)
  102.     {
  103.         $this->notificationTitle $notificationTitle;
  104.         return $this;
  105.     }
  106.     /**
  107.      * Get notificationTitle
  108.      *
  109.      * @return string
  110.      */
  111.     public function getNotificationTitle()
  112.     {
  113.         return $this->notificationTitle;
  114.     }
  115.     /**
  116.      * Set notificationBody
  117.      *
  118.      * @param string $notificationBody
  119.      *
  120.      * @return UserNotifications
  121.      */
  122.     public function setNotificationBody($notificationBody)
  123.     {
  124.         $this->notificationBody $notificationBody;
  125.         return $this;
  126.     }
  127.     /**
  128.      * Get notificationBody
  129.      *
  130.      * @return string
  131.      */
  132.     public function getNotificationBody()
  133.     {
  134.         return $this->notificationBody;
  135.     }
  136.     /**
  137.      * Set notificationPreview
  138.      *
  139.      * @param string $notificationPreview
  140.      *
  141.      * @return UserNotifications
  142.      */
  143.     public function setNotificationPreview($notificationPreview)
  144.     {
  145.         $this->notificationPreview $notificationPreview;
  146.         return $this;
  147.     }
  148.     /**
  149.      * Get notificationPreview
  150.      *
  151.      * @return string
  152.      */
  153.     public function getNotificationPreview()
  154.     {
  155.         return $this->notificationPreview;
  156.     }
  157.     /**
  158.      * Set createdAt
  159.      *
  160.      * @param \DateTime $createdAt
  161.      *
  162.      * @return UserNotifications
  163.      */
  164.     public function setCreatedAt($createdAt)
  165.     {
  166.         $this->createdAt $createdAt;
  167.         return $this;
  168.     }
  169.     /**
  170.      * Get createdAt
  171.      *
  172.      * @return \DateTime
  173.      */
  174.     public function getCreatedAt()
  175.     {
  176.         return $this->createdAt;
  177.     }
  178.     /**
  179.      * Set seenAt
  180.      *
  181.      * @param \DateTime $seenAt
  182.      *
  183.      * @return UserNotifications
  184.      */
  185.     public function setSeenAt($seenAt)
  186.     {
  187.         $this->seenAt $seenAt;
  188.         return $this;
  189.     }
  190.     /**
  191.      * Get seenAt
  192.      *
  193.      * @return \DateTime
  194.      */
  195.     public function getSeenAt()
  196.     {
  197.         return $this->seenAt;
  198.     }
  199. }