message.class.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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 Message extends \Entity
  10. {
  11. /**
  12. * @return \Entity\Repository\MessageRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\MessageRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Message
  19. */
  20. public static function create(){
  21. return new self();
  22. }
  23. /**
  24. * @var bigint $id
  25. */
  26. protected $id;
  27. /**
  28. * @var integer $user_sender_id
  29. */
  30. protected $user_sender_id;
  31. /**
  32. * @var integer $user_receiver_id
  33. */
  34. protected $user_receiver_id;
  35. /**
  36. * @var boolean $msg_status
  37. */
  38. protected $msg_status;
  39. /**
  40. * @var datetime $send_date
  41. */
  42. protected $send_date;
  43. /**
  44. * @var string $title
  45. */
  46. protected $title;
  47. /**
  48. * @var text $content
  49. */
  50. protected $content;
  51. /**
  52. * @var integer $group_id
  53. */
  54. protected $group_id;
  55. /**
  56. * @var integer $parent_id
  57. */
  58. protected $parent_id;
  59. /**
  60. * @var datetime $update_date
  61. */
  62. protected $update_date;
  63. /**
  64. * Get id
  65. *
  66. * @return bigint
  67. */
  68. public function get_id()
  69. {
  70. return $this->id;
  71. }
  72. /**
  73. * Set user_sender_id
  74. *
  75. * @param integer $value
  76. * @return Message
  77. */
  78. public function set_user_sender_id($value)
  79. {
  80. $this->user_sender_id = $value;
  81. return $this;
  82. }
  83. /**
  84. * Get user_sender_id
  85. *
  86. * @return integer
  87. */
  88. public function get_user_sender_id()
  89. {
  90. return $this->user_sender_id;
  91. }
  92. /**
  93. * Set user_receiver_id
  94. *
  95. * @param integer $value
  96. * @return Message
  97. */
  98. public function set_user_receiver_id($value)
  99. {
  100. $this->user_receiver_id = $value;
  101. return $this;
  102. }
  103. /**
  104. * Get user_receiver_id
  105. *
  106. * @return integer
  107. */
  108. public function get_user_receiver_id()
  109. {
  110. return $this->user_receiver_id;
  111. }
  112. /**
  113. * Set msg_status
  114. *
  115. * @param boolean $value
  116. * @return Message
  117. */
  118. public function set_msg_status($value)
  119. {
  120. $this->msg_status = $value;
  121. return $this;
  122. }
  123. /**
  124. * Get msg_status
  125. *
  126. * @return boolean
  127. */
  128. public function get_msg_status()
  129. {
  130. return $this->msg_status;
  131. }
  132. /**
  133. * Set send_date
  134. *
  135. * @param datetime $value
  136. * @return Message
  137. */
  138. public function set_send_date($value)
  139. {
  140. $this->send_date = $value;
  141. return $this;
  142. }
  143. /**
  144. * Get send_date
  145. *
  146. * @return datetime
  147. */
  148. public function get_send_date()
  149. {
  150. return $this->send_date;
  151. }
  152. /**
  153. * Set title
  154. *
  155. * @param string $value
  156. * @return Message
  157. */
  158. public function set_title($value)
  159. {
  160. $this->title = $value;
  161. return $this;
  162. }
  163. /**
  164. * Get title
  165. *
  166. * @return string
  167. */
  168. public function get_title()
  169. {
  170. return $this->title;
  171. }
  172. /**
  173. * Set content
  174. *
  175. * @param text $value
  176. * @return Message
  177. */
  178. public function set_content($value)
  179. {
  180. $this->content = $value;
  181. return $this;
  182. }
  183. /**
  184. * Get content
  185. *
  186. * @return text
  187. */
  188. public function get_content()
  189. {
  190. return $this->content;
  191. }
  192. /**
  193. * Set group_id
  194. *
  195. * @param integer $value
  196. * @return Message
  197. */
  198. public function set_group_id($value)
  199. {
  200. $this->group_id = $value;
  201. return $this;
  202. }
  203. /**
  204. * Get group_id
  205. *
  206. * @return integer
  207. */
  208. public function get_group_id()
  209. {
  210. return $this->group_id;
  211. }
  212. /**
  213. * Set parent_id
  214. *
  215. * @param integer $value
  216. * @return Message
  217. */
  218. public function set_parent_id($value)
  219. {
  220. $this->parent_id = $value;
  221. return $this;
  222. }
  223. /**
  224. * Get parent_id
  225. *
  226. * @return integer
  227. */
  228. public function get_parent_id()
  229. {
  230. return $this->parent_id;
  231. }
  232. /**
  233. * Set update_date
  234. *
  235. * @param datetime $value
  236. * @return Message
  237. */
  238. public function set_update_date($value)
  239. {
  240. $this->update_date = $value;
  241. return $this;
  242. }
  243. /**
  244. * Get update_date
  245. *
  246. * @return datetime
  247. */
  248. public function get_update_date()
  249. {
  250. return $this->update_date;
  251. }
  252. }