src/Entity/Messages.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Messages
  6. *
  7. * @ORM\Table(name="messages", options={"collate"="latin1_general_ci","charset"="latin1"})
  8. * @ORM\Entity(repositoryClass="App\Repository\MessagesRepository")
  9. */
  10. class Messages
  11. {
  12. /**
  13. * @var integer
  14. *
  15. * @ORM\Column(name="id", type="integer", nullable=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="App\Entity\Admin", cascade={"persist"})
  22. * @ORM\JoinColumn(nullable=false)
  23. */
  24. private $idadmin;
  25. /**
  26. * @var \DateTime
  27. *
  28. * @ORM\Column(name="datefr", type="date", nullable=false)
  29. */
  30. private $datefr;
  31. /**
  32. * @var string
  33. *
  34. * @ORM\Column(name="titre", type="string", length=250, nullable=false)
  35. */
  36. private $titre;
  37. /**
  38. * @var string
  39. *
  40. * @ORM\Column(name="texte", type="text", nullable=false)
  41. */
  42. private $texte;
  43. /**
  44. * @var \DateTime
  45. *
  46. * @ORM\Column(name="datereponsefr", type="datetime", nullable=true)
  47. */
  48. private $datereponsefr;
  49. /**
  50. * @var string
  51. *
  52. * @ORM\Column(name="reponse", type="text", nullable=true)
  53. */
  54. private $reponse;
  55. /**
  56. * @var boolean
  57. *
  58. * @ORM\Column(name="urgent", type="boolean", nullable=false)
  59. */
  60. private $urgent;
  61. /**
  62. * @var \DateTime
  63. *
  64. * @ORM\Column(name="datelufr", type="datetime", nullable=true)
  65. */
  66. private $datelufr;
  67. /**
  68. * @var boolean
  69. *
  70. * @ORM\Column(name="lu", type="boolean", nullable=false)
  71. */
  72. private $lu;
  73. public function __construct() {
  74. $this->datefr = new \Datetime('now');
  75. $this->urgent = false;
  76. $this->lu = false;
  77. }
  78. /**
  79. * Get id
  80. *
  81. * @return integer
  82. */
  83. public function getId()
  84. {
  85. return $this->id;
  86. }
  87. /**
  88. * Set datefr
  89. *
  90. * @param \DateTime $datefr
  91. * @return Messages
  92. */
  93. public function setDatefr($datefr)
  94. {
  95. $this->datefr = $datefr;
  96. return $this;
  97. }
  98. /**
  99. * Get datefr
  100. *
  101. * @return \DateTime
  102. */
  103. public function getDatefr()
  104. {
  105. return $this->datefr;
  106. }
  107. /**
  108. * Set titre
  109. *
  110. * @param string $titre
  111. * @return Messages
  112. */
  113. public function setTitre($titre)
  114. {
  115. $this->titre = $titre;
  116. return $this;
  117. }
  118. /**
  119. * Get titre
  120. *
  121. * @return string
  122. */
  123. public function getTitre()
  124. {
  125. return $this->titre;
  126. }
  127. /**
  128. * Set texte
  129. *
  130. * @param string $texte
  131. * @return Messages
  132. */
  133. public function setTexte($texte)
  134. {
  135. $this->texte = $texte;
  136. return $this;
  137. }
  138. /**
  139. * Get texte
  140. *
  141. * @return string
  142. */
  143. public function getTexte()
  144. {
  145. return $this->texte;
  146. }
  147. /**
  148. * Set datereponsefr
  149. *
  150. * @param \DateTime $datereponsefr
  151. * @return Messages
  152. */
  153. public function setDatereponsefr($datereponsefr)
  154. {
  155. $this->datereponsefr = $datereponsefr;
  156. return $this;
  157. }
  158. /**
  159. * Get datereponsefr
  160. *
  161. * @return \DateTime
  162. */
  163. public function getDatereponsefr()
  164. {
  165. return $this->datereponsefr;
  166. }
  167. /**
  168. * Set reponse
  169. *
  170. * @param string $reponse
  171. * @return Messages
  172. */
  173. public function setReponse($reponse)
  174. {
  175. $this->reponse = $reponse;
  176. return $this;
  177. }
  178. /**
  179. * Get reponse
  180. *
  181. * @return string
  182. */
  183. public function getReponse()
  184. {
  185. return $this->reponse;
  186. }
  187. /**
  188. * Set urgent
  189. *
  190. * @param boolean $urgent
  191. * @return Messages
  192. */
  193. public function setUrgent($urgent)
  194. {
  195. $this->urgent = $urgent;
  196. return $this;
  197. }
  198. /**
  199. * Get urgent
  200. *
  201. * @return boolean
  202. */
  203. public function getUrgent()
  204. {
  205. return $this->urgent;
  206. }
  207. /**
  208. * Set datelufr
  209. *
  210. * @param \DateTime $datelufr
  211. * @return Messages
  212. */
  213. public function setDatelufr($datelufr)
  214. {
  215. $this->datelufr = $datelufr;
  216. return $this;
  217. }
  218. /**
  219. * Get datelufr
  220. *
  221. * @return \DateTime
  222. */
  223. public function getDatelufr()
  224. {
  225. return $this->datelufr;
  226. }
  227. /**
  228. * Set lu
  229. *
  230. * @param boolean $lu
  231. * @return Messages
  232. */
  233. public function setLu($lu)
  234. {
  235. $this->lu = $lu;
  236. return $this;
  237. }
  238. /**
  239. * Get lu
  240. *
  241. * @return boolean
  242. */
  243. public function getLu()
  244. {
  245. return $this->lu;
  246. }
  247. /**
  248. * Set idadmin
  249. *
  250. * @param Admin $idadmin
  251. * @return Messages
  252. */
  253. public function setIdadmin(Admin $idadmin)
  254. {
  255. $this->idadmin = $idadmin;
  256. return $this;
  257. }
  258. /**
  259. * Get idadmin
  260. *
  261. * @return Admin
  262. */
  263. public function getIdadmin()
  264. {
  265. return $this->idadmin;
  266. }
  267. }