2019-03-01 13:24:58 +01:00
|
|
|
<?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)
|
|
|
|
*/
|
2019-03-01 16:03:41 +01:00
|
|
|
private $title = "";
|
2019-03-01 13:24:58 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @ORM\Column(type="string", length=191)
|
|
|
|
*/
|
2019-03-01 16:03:41 +01:00
|
|
|
private $data = "";
|
2019-03-01 13:24:58 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @ORM\Column(type="string", length=191)
|
|
|
|
*/
|
2019-03-01 16:03:41 +01:00
|
|
|
private $description = "";
|
2019-03-01 13:24:58 +01:00
|
|
|
|
|
|
|
/**
|
2019-03-01 13:37:53 +01:00
|
|
|
* @ORM\ManyToOne(targetEntity="\App\Entity\User")
|
2019-03-01 13:24:58 +01:00
|
|
|
*/
|
|
|
|
private $user;
|
|
|
|
|
|
|
|
/**
|
2019-03-01 16:03:41 +01:00
|
|
|
* @ORM\Column(type="datetime", nullable=true)
|
2019-03-01 13:24:58 +01:00
|
|
|
*/
|
|
|
|
private $deleted_at;
|
|
|
|
|
|
|
|
/**
|
2019-03-01 16:03:41 +01:00
|
|
|
* @ORM\Column(type="datetime", nullable=true)
|
2019-03-01 13:24:58 +01:00
|
|
|
*/
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|