<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="notification")
* @ORM\Entity(repositoryClass="App\Repository\NotificationRepository")
*/
class Notification
{
use \App\Traits\Timestampable;
use \App\Traits\Blameable;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\NotificationType")
* @ORM\JoinColumn(nullable=false)
*/
private $notificationType;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User")
* @ORM\JoinColumn(nullable=true)
*/
private $user;
/**
* @ORM\Column(type="string", length=255)
*/
private $libelle;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $contenu;
/**
* @ORM\Column(type="datetime",nullable=true)
*/
private $dateLue;
/**
* @ORM\Column(type="string", length=2000, nullable=true)
*/
private $url;
/**
* @ORM\ManyToOne(targetEntity=Mine::class, inversedBy="notifications")
*/
private $mine;
public function getId(): ?int
{
return $this->id;
}
/**
* Get the value of notificationType
*/
public function getNotificationType()
{
return $this->notificationType;
}
/**
* Set the value of notificationType
*
* @return self
*/
public function setNotificationType($notificationType)
{
$this->notificationType = $notificationType;
return $this;
}
/**
* Get the value of libelle
*/
public function getLibelle()
{
return $this->libelle;
}
/**
* Set the value of libelle
*
* @return self
*/
public function setLibelle($libelle)
{
$this->libelle = $libelle;
return $this;
}
/**
* Get the value of contenu
*/
public function getContenu()
{
return $this->contenu;
}
/**
* Set the value of contenu
*
* @return self
*/
public function setContenu($contenu)
{
$this->contenu = $contenu;
return $this;
}
/**
* Get the value of dateLue
*/
public function getDateLue()
{
return $this->dateLue;
}
/**
* Set the value of dateLue
*
* @return self
*/
public function setDateLue($dateLue)
{
$this->dateLue = $dateLue;
return $this;
}
/**
* Get the value of user
*/
public function getUser(): ?User
{
return $this->user;
}
/**
* Set the value of user
*
* @return self
*/
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
public function getMine(): ?Mine
{
return $this->mine;
}
public function setMine(?Mine $mine): self
{
$this->mine = $mine;
return $this;
}
}