<?php namespace Bluesquare\NotificationsBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="Bluesquare\NotificationsBundle\Repository\NotificationRepository") */ class Notification { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=191) */ private $title = ""; /** * @ORM\Column(type="string", length=191) */ private $data = ""; /** * @ORM\Column(type="string", length=191) */ private $description = ""; /** * @ORM\ManyToOne(targetEntity="\App\Entity\User") */ private $user; /** * @ORM\Column(type="datetime", nullable=true) */ private $deleted_at; /** * @ORM\Column(type="datetime", nullable=true) */ private $seen_at; // ================================= // ========GETTERS/SETTERS========== // ================================= /** * @return mixed */ public function getId() { return $this->id; } /** * @param mixed $id * @return Notification */ public function setId($id) { $this->id = $id; return $this; } /** * @return mixed */ public function getTitle() { return $this->title; } /** * @param mixed $title * @return Notification */ public function setTitle($title) { $this->title = $title; return $this; } /** * @return mixed */ public function getData() { return $this->data; } /** * @param mixed $data * @return Notification */ public function setData($data) { $this->data = $data; return $this; } /** * @return mixed */ public function getDescription() { return $this->description; } /** * @param mixed $description * @return Notification */ public function setDescription($description) { $this->description = $description; return $this; } /** * @return mixed */ public function getUser() { return $this->user; } /** * @param mixed $user * @return Notification */ public function setUser($user) { $this->user = $user; return $this; } /** * @return mixed */ public function getDeletedAt() { return $this->deleted_at; } /** * @param mixed $deleted_at * @return Notification */ public function setDeletedAt($deleted_at) { $this->deleted_at = $deleted_at; return $this; } /** * @return mixed */ public function getSeenAt() { return $this->seen_at; } /** * @param mixed $seen_at * @return Notification */ public function setSeenAt($seen_at) { $this->seen_at = $seen_at; return $this; } }