notification.class.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. *
  6. * @license see /license.txt
  7. * @author autogenerated
  8. */
  9. class Notification extends \Entity
  10. {
  11. /**
  12. * @return \Entity\Repository\NotificationRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\NotificationRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Notification
  19. */
  20. public static function create(){
  21. return new self();
  22. }
  23. /**
  24. * @var bigint $id
  25. */
  26. protected $id;
  27. /**
  28. * @var integer $dest_user_id
  29. */
  30. protected $dest_user_id;
  31. /**
  32. * @var string $dest_mail
  33. */
  34. protected $dest_mail;
  35. /**
  36. * @var string $title
  37. */
  38. protected $title;
  39. /**
  40. * @var string $content
  41. */
  42. protected $content;
  43. /**
  44. * @var smallint $send_freq
  45. */
  46. protected $send_freq;
  47. /**
  48. * @var datetime $created_at
  49. */
  50. protected $created_at;
  51. /**
  52. * @var datetime $sent_at
  53. */
  54. protected $sent_at;
  55. /**
  56. * Get id
  57. *
  58. * @return bigint
  59. */
  60. public function get_id()
  61. {
  62. return $this->id;
  63. }
  64. /**
  65. * Set dest_user_id
  66. *
  67. * @param integer $value
  68. * @return Notification
  69. */
  70. public function set_dest_user_id($value)
  71. {
  72. $this->dest_user_id = $value;
  73. return $this;
  74. }
  75. /**
  76. * Get dest_user_id
  77. *
  78. * @return integer
  79. */
  80. public function get_dest_user_id()
  81. {
  82. return $this->dest_user_id;
  83. }
  84. /**
  85. * Set dest_mail
  86. *
  87. * @param string $value
  88. * @return Notification
  89. */
  90. public function set_dest_mail($value)
  91. {
  92. $this->dest_mail = $value;
  93. return $this;
  94. }
  95. /**
  96. * Get dest_mail
  97. *
  98. * @return string
  99. */
  100. public function get_dest_mail()
  101. {
  102. return $this->dest_mail;
  103. }
  104. /**
  105. * Set title
  106. *
  107. * @param string $value
  108. * @return Notification
  109. */
  110. public function set_title($value)
  111. {
  112. $this->title = $value;
  113. return $this;
  114. }
  115. /**
  116. * Get title
  117. *
  118. * @return string
  119. */
  120. public function get_title()
  121. {
  122. return $this->title;
  123. }
  124. /**
  125. * Set content
  126. *
  127. * @param string $value
  128. * @return Notification
  129. */
  130. public function set_content($value)
  131. {
  132. $this->content = $value;
  133. return $this;
  134. }
  135. /**
  136. * Get content
  137. *
  138. * @return string
  139. */
  140. public function get_content()
  141. {
  142. return $this->content;
  143. }
  144. /**
  145. * Set send_freq
  146. *
  147. * @param smallint $value
  148. * @return Notification
  149. */
  150. public function set_send_freq($value)
  151. {
  152. $this->send_freq = $value;
  153. return $this;
  154. }
  155. /**
  156. * Get send_freq
  157. *
  158. * @return smallint
  159. */
  160. public function get_send_freq()
  161. {
  162. return $this->send_freq;
  163. }
  164. /**
  165. * Set created_at
  166. *
  167. * @param datetime $value
  168. * @return Notification
  169. */
  170. public function set_created_at($value)
  171. {
  172. $this->created_at = $value;
  173. return $this;
  174. }
  175. /**
  176. * Get created_at
  177. *
  178. * @return datetime
  179. */
  180. public function get_created_at()
  181. {
  182. return $this->created_at;
  183. }
  184. /**
  185. * Set sent_at
  186. *
  187. * @param datetime $value
  188. * @return Notification
  189. */
  190. public function set_sent_at($value)
  191. {
  192. $this->sent_at = $value;
  193. return $this;
  194. }
  195. /**
  196. * Get sent_at
  197. *
  198. * @return datetime
  199. */
  200. public function get_sent_at()
  201. {
  202. return $this->sent_at;
  203. }
  204. }