src/Entity/Notification.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NotificationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=NotificationRepository::class)
  7. */
  8. class Notification
  9. {
  10. const STATUT_OPEN = "open";
  11. const STATUT_CLOSE = "close";
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\Column(type="string", length=100, nullable=true)
  20. */
  21. private $Role;
  22. /**
  23. * @ORM\Column(type="string", length=255)
  24. */
  25. private $title;
  26. /**
  27. * @ORM\Column(type="string", length=255, nullable=true)
  28. */
  29. private $subtitle;
  30. /**
  31. * @ORM\Column(type="datetime")
  32. */
  33. private $date;
  34. /**
  35. * @ORM\Column(type="string", length=511)
  36. */
  37. private $url;
  38. /**
  39. * @ORM\Column(type="string", length=10)
  40. */
  41. private $statut;
  42. public function getId(): ?int
  43. {
  44. return $this->id;
  45. }
  46. public function getRole(): ?string
  47. {
  48. return $this->Role;
  49. }
  50. public function setRole(?string $Role): self
  51. {
  52. $this->Role = $Role;
  53. return $this;
  54. }
  55. public function getTitle(): ?string
  56. {
  57. return $this->title;
  58. }
  59. public function setTitle(string $title): self
  60. {
  61. $this->title = $title;
  62. return $this;
  63. }
  64. public function getSubtitle(): ?string
  65. {
  66. return $this->subtitle;
  67. }
  68. public function setSubtitle(?string $subtitle): self
  69. {
  70. $this->subtitle = $subtitle;
  71. return $this;
  72. }
  73. public function getDate(): ?\DateTimeInterface
  74. {
  75. return $this->date;
  76. }
  77. public function setDate(\DateTimeInterface $date): self
  78. {
  79. $this->date = $date;
  80. return $this;
  81. }
  82. public function getUrl(): ?string
  83. {
  84. return $this->url;
  85. }
  86. public function setUrl(string $url): self
  87. {
  88. $this->url = $url;
  89. return $this;
  90. }
  91. public function getStatut(): ?string
  92. {
  93. return $this->statut;
  94. }
  95. public function setStatut(string $statut): self
  96. {
  97. $this->statut = $statut;
  98. return $this;
  99. }
  100. public function __construct()
  101. {
  102. $this->date = new \Datetime();
  103. }
  104. }