<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;/** * UserNotifications * * @ORM\Table(name="user_notifications") * @ORM\Entity(repositoryClass="App\Repository\UserNotificationsRepository") */class UserNotifications{ /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @Groups("data_export") */ private $id; /** * @var int * * @ORM\Column(name="user_id", type="integer") * @ORM\ManyToOne(targetEntity="App\Entity\Users") * @ORM\JoinColumn(onDelete="CASCADE") */ private $userId; /** * @var string * * @ORM\Column(name="notification_title", type="text") * @Groups("data_export") */ private $notificationTitle; /** * @var string * * @ORM\Column(name="notification_body", type="text") * @Groups("data_export") */ private $notificationBody; /** * @var string * * @ORM\Column(name="notification_preview", type="text") * @Groups("data_export") */ private $notificationPreview; /** * @var \DateTime * * @ORM\Column(name="created_at", type="datetime") * @Groups("data_export") */ private $createdAt; /** * @var \DateTime * * @ORM\Column(name="seen_at", type="datetime", nullable=true) */ private $seenAt; /** * Get id * * @return int */ public function getId() { return $this->id; } /** * Set userId * * @param integer $userId * * @return UserNotifications */ public function setUserId($userId) { $this->userId = $userId; return $this; } /** * Get userId * * @return int */ public function getUserId() { return $this->userId; } /** * Set notificationTitle * * @param string $notificationTitle * * @return UserNotifications */ public function setNotificationTitle($notificationTitle) { $this->notificationTitle = $notificationTitle; return $this; } /** * Get notificationTitle * * @return string */ public function getNotificationTitle() { return $this->notificationTitle; } /** * Set notificationBody * * @param string $notificationBody * * @return UserNotifications */ public function setNotificationBody($notificationBody) { $this->notificationBody = $notificationBody; return $this; } /** * Get notificationBody * * @return string */ public function getNotificationBody() { return $this->notificationBody; } /** * Set notificationPreview * * @param string $notificationPreview * * @return UserNotifications */ public function setNotificationPreview($notificationPreview) { $this->notificationPreview = $notificationPreview; return $this; } /** * Get notificationPreview * * @return string */ public function getNotificationPreview() { return $this->notificationPreview; } /** * Set createdAt * * @param \DateTime $createdAt * * @return UserNotifications */ public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt * * @return \DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * Set seenAt * * @param \DateTime $seenAt * * @return UserNotifications */ public function setSeenAt($seenAt) { $this->seenAt = $seenAt; return $this; } /** * Get seenAt * * @return \DateTime */ public function getSeenAt() { return $this->seenAt; }}