EntityCBlogRating.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityCBlogRating
  5. *
  6. * @Table(name="c_blog_rating")
  7. * @Entity
  8. */
  9. class EntityCBlogRating
  10. {
  11. /**
  12. * @var integer
  13. *
  14. * @Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  15. * @Id
  16. * @GeneratedValue(strategy="NONE")
  17. */
  18. private $cId;
  19. /**
  20. * @var integer
  21. *
  22. * @Column(name="rating_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  23. * @Id
  24. * @GeneratedValue(strategy="NONE")
  25. */
  26. private $ratingId;
  27. /**
  28. * @var integer
  29. *
  30. * @Column(name="blog_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  31. */
  32. private $blogId;
  33. /**
  34. * @var string
  35. *
  36. * @Column(name="rating_type", type="string", precision=0, scale=0, nullable=false, unique=false)
  37. */
  38. private $ratingType;
  39. /**
  40. * @var integer
  41. *
  42. * @Column(name="item_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  43. */
  44. private $itemId;
  45. /**
  46. * @var integer
  47. *
  48. * @Column(name="user_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  49. */
  50. private $userId;
  51. /**
  52. * @var integer
  53. *
  54. * @Column(name="rating", type="integer", precision=0, scale=0, nullable=false, unique=false)
  55. */
  56. private $rating;
  57. /**
  58. * Set cId
  59. *
  60. * @param integer $cId
  61. * @return EntityCBlogRating
  62. */
  63. public function setCId($cId)
  64. {
  65. $this->cId = $cId;
  66. return $this;
  67. }
  68. /**
  69. * Get cId
  70. *
  71. * @return integer
  72. */
  73. public function getCId()
  74. {
  75. return $this->cId;
  76. }
  77. /**
  78. * Set ratingId
  79. *
  80. * @param integer $ratingId
  81. * @return EntityCBlogRating
  82. */
  83. public function setRatingId($ratingId)
  84. {
  85. $this->ratingId = $ratingId;
  86. return $this;
  87. }
  88. /**
  89. * Get ratingId
  90. *
  91. * @return integer
  92. */
  93. public function getRatingId()
  94. {
  95. return $this->ratingId;
  96. }
  97. /**
  98. * Set blogId
  99. *
  100. * @param integer $blogId
  101. * @return EntityCBlogRating
  102. */
  103. public function setBlogId($blogId)
  104. {
  105. $this->blogId = $blogId;
  106. return $this;
  107. }
  108. /**
  109. * Get blogId
  110. *
  111. * @return integer
  112. */
  113. public function getBlogId()
  114. {
  115. return $this->blogId;
  116. }
  117. /**
  118. * Set ratingType
  119. *
  120. * @param string $ratingType
  121. * @return EntityCBlogRating
  122. */
  123. public function setRatingType($ratingType)
  124. {
  125. $this->ratingType = $ratingType;
  126. return $this;
  127. }
  128. /**
  129. * Get ratingType
  130. *
  131. * @return string
  132. */
  133. public function getRatingType()
  134. {
  135. return $this->ratingType;
  136. }
  137. /**
  138. * Set itemId
  139. *
  140. * @param integer $itemId
  141. * @return EntityCBlogRating
  142. */
  143. public function setItemId($itemId)
  144. {
  145. $this->itemId = $itemId;
  146. return $this;
  147. }
  148. /**
  149. * Get itemId
  150. *
  151. * @return integer
  152. */
  153. public function getItemId()
  154. {
  155. return $this->itemId;
  156. }
  157. /**
  158. * Set userId
  159. *
  160. * @param integer $userId
  161. * @return EntityCBlogRating
  162. */
  163. public function setUserId($userId)
  164. {
  165. $this->userId = $userId;
  166. return $this;
  167. }
  168. /**
  169. * Get userId
  170. *
  171. * @return integer
  172. */
  173. public function getUserId()
  174. {
  175. return $this->userId;
  176. }
  177. /**
  178. * Set rating
  179. *
  180. * @param integer $rating
  181. * @return EntityCBlogRating
  182. */
  183. public function setRating($rating)
  184. {
  185. $this->rating = $rating;
  186. return $this;
  187. }
  188. /**
  189. * Get rating
  190. *
  191. * @return integer
  192. */
  193. public function getRating()
  194. {
  195. return $this->rating;
  196. }
  197. }