EntityLegal.php 3.7 KB

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