EntityNotification.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityNotification
  5. *
  6. * @Table(name="notification")
  7. * @Entity
  8. */
  9. class EntityNotification
  10. {
  11. /**
  12. * @var integer
  13. *
  14. * @Column(name="id", type="bigint", precision=0, scale=0, nullable=false, unique=false)
  15. * @Id
  16. * @GeneratedValue(strategy="IDENTITY")
  17. */
  18. private $id;
  19. /**
  20. * @var integer
  21. *
  22. * @Column(name="dest_user_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  23. */
  24. private $destUserId;
  25. /**
  26. * @var string
  27. *
  28. * @Column(name="dest_mail", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
  29. */
  30. private $destMail;
  31. /**
  32. * @var string
  33. *
  34. * @Column(name="title", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
  35. */
  36. private $title;
  37. /**
  38. * @var integer
  39. *
  40. * @Column(name="sender_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  41. */
  42. private $senderId;
  43. /**
  44. * @var string
  45. *
  46. * @Column(name="content", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
  47. */
  48. private $content;
  49. /**
  50. * @var integer
  51. *
  52. * @Column(name="send_freq", type="smallint", precision=0, scale=0, nullable=true, unique=false)
  53. */
  54. private $sendFreq;
  55. /**
  56. * @var \DateTime
  57. *
  58. * @Column(name="created_at", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  59. */
  60. private $createdAt;
  61. /**
  62. * @var \DateTime
  63. *
  64. * @Column(name="sent_at", type="datetime", precision=0, scale=0, nullable=true, unique=false)
  65. */
  66. private $sentAt;
  67. /**
  68. * Get id
  69. *
  70. * @return integer
  71. */
  72. public function getId()
  73. {
  74. return $this->id;
  75. }
  76. /**
  77. * Set destUserId
  78. *
  79. * @param integer $destUserId
  80. * @return EntityNotification
  81. */
  82. public function setDestUserId($destUserId)
  83. {
  84. $this->destUserId = $destUserId;
  85. return $this;
  86. }
  87. /**
  88. * Get destUserId
  89. *
  90. * @return integer
  91. */
  92. public function getDestUserId()
  93. {
  94. return $this->destUserId;
  95. }
  96. /**
  97. * Set destMail
  98. *
  99. * @param string $destMail
  100. * @return EntityNotification
  101. */
  102. public function setDestMail($destMail)
  103. {
  104. $this->destMail = $destMail;
  105. return $this;
  106. }
  107. /**
  108. * Get destMail
  109. *
  110. * @return string
  111. */
  112. public function getDestMail()
  113. {
  114. return $this->destMail;
  115. }
  116. /**
  117. * Set title
  118. *
  119. * @param string $title
  120. * @return EntityNotification
  121. */
  122. public function setTitle($title)
  123. {
  124. $this->title = $title;
  125. return $this;
  126. }
  127. /**
  128. * Get title
  129. *
  130. * @return string
  131. */
  132. public function getTitle()
  133. {
  134. return $this->title;
  135. }
  136. /**
  137. * Set senderId
  138. *
  139. * @param integer $senderId
  140. * @return EntityNotification
  141. */
  142. public function setSenderId($senderId)
  143. {
  144. $this->senderId = $senderId;
  145. return $this;
  146. }
  147. /**
  148. * Get senderId
  149. *
  150. * @return integer
  151. */
  152. public function getSenderId()
  153. {
  154. return $this->senderId;
  155. }
  156. /**
  157. * Set content
  158. *
  159. * @param string $content
  160. * @return EntityNotification
  161. */
  162. public function setContent($content)
  163. {
  164. $this->content = $content;
  165. return $this;
  166. }
  167. /**
  168. * Get content
  169. *
  170. * @return string
  171. */
  172. public function getContent()
  173. {
  174. return $this->content;
  175. }
  176. /**
  177. * Set sendFreq
  178. *
  179. * @param integer $sendFreq
  180. * @return EntityNotification
  181. */
  182. public function setSendFreq($sendFreq)
  183. {
  184. $this->sendFreq = $sendFreq;
  185. return $this;
  186. }
  187. /**
  188. * Get sendFreq
  189. *
  190. * @return integer
  191. */
  192. public function getSendFreq()
  193. {
  194. return $this->sendFreq;
  195. }
  196. /**
  197. * Set createdAt
  198. *
  199. * @param \DateTime $createdAt
  200. * @return EntityNotification
  201. */
  202. public function setCreatedAt($createdAt)
  203. {
  204. $this->createdAt = $createdAt;
  205. return $this;
  206. }
  207. /**
  208. * Get createdAt
  209. *
  210. * @return \DateTime
  211. */
  212. public function getCreatedAt()
  213. {
  214. return $this->createdAt;
  215. }
  216. /**
  217. * Set sentAt
  218. *
  219. * @param \DateTime $sentAt
  220. * @return EntityNotification
  221. */
  222. public function setSentAt($sentAt)
  223. {
  224. $this->sentAt = $sentAt;
  225. return $this;
  226. }
  227. /**
  228. * Get sentAt
  229. *
  230. * @return \DateTime
  231. */
  232. public function getSentAt()
  233. {
  234. return $this->sentAt;
  235. }
  236. }