<?phpnamespace App\Entity;use App\Repository\NotificationRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=NotificationRepository::class) */class Notification{ const STATUT_OPEN = "open"; const STATUT_CLOSE = "close"; /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=100, nullable=true) */ private $Role; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $subtitle; /** * @ORM\Column(type="datetime") */ private $date; /** * @ORM\Column(type="string", length=511) */ private $url; /** * @ORM\Column(type="string", length=10) */ private $statut; public function getId(): ?int { return $this->id; } public function getRole(): ?string { return $this->Role; } public function setRole(?string $Role): self { $this->Role = $Role; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getSubtitle(): ?string { return $this->subtitle; } public function setSubtitle(?string $subtitle): self { $this->subtitle = $subtitle; return $this; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(\DateTimeInterface $date): self { $this->date = $date; return $this; } public function getUrl(): ?string { return $this->url; } public function setUrl(string $url): self { $this->url = $url; return $this; } public function getStatut(): ?string { return $this->statut; } public function setStatut(string $statut): self { $this->statut = $statut; return $this; } public function __construct() { $this->date = new \Datetime(); }}