EntityPromotion.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityPromotion
  5. *
  6. * @Table(name="promotion")
  7. * @Entity
  8. */
  9. class EntityPromotion
  10. {
  11. /**
  12. * @var integer
  13. *
  14. * @Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  15. * @Id
  16. * @GeneratedValue(strategy="IDENTITY")
  17. */
  18. private $id;
  19. /**
  20. * @var string
  21. *
  22. * @Column(name="name", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  23. */
  24. private $name;
  25. /**
  26. * @var string
  27. *
  28. * @Column(name="description", type="text", precision=0, scale=0, nullable=false, unique=false)
  29. */
  30. private $description;
  31. /**
  32. * @var integer
  33. *
  34. * @Column(name="career_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  35. */
  36. private $careerId;
  37. /**
  38. * @var integer
  39. *
  40. * @Column(name="status", type="integer", precision=0, scale=0, nullable=false, unique=false)
  41. */
  42. private $status;
  43. /**
  44. * @var \DateTime
  45. *
  46. * @Column(name="created_at", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  47. */
  48. private $createdAt;
  49. /**
  50. * @var \DateTime
  51. *
  52. * @Column(name="updated_at", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  53. */
  54. private $updatedAt;
  55. /**
  56. * Get id
  57. *
  58. * @return integer
  59. */
  60. public function getId()
  61. {
  62. return $this->id;
  63. }
  64. /**
  65. * Set name
  66. *
  67. * @param string $name
  68. * @return EntityPromotion
  69. */
  70. public function setName($name)
  71. {
  72. $this->name = $name;
  73. return $this;
  74. }
  75. /**
  76. * Get name
  77. *
  78. * @return string
  79. */
  80. public function getName()
  81. {
  82. return $this->name;
  83. }
  84. /**
  85. * Set description
  86. *
  87. * @param string $description
  88. * @return EntityPromotion
  89. */
  90. public function setDescription($description)
  91. {
  92. $this->description = $description;
  93. return $this;
  94. }
  95. /**
  96. * Get description
  97. *
  98. * @return string
  99. */
  100. public function getDescription()
  101. {
  102. return $this->description;
  103. }
  104. /**
  105. * Set careerId
  106. *
  107. * @param integer $careerId
  108. * @return EntityPromotion
  109. */
  110. public function setCareerId($careerId)
  111. {
  112. $this->careerId = $careerId;
  113. return $this;
  114. }
  115. /**
  116. * Get careerId
  117. *
  118. * @return integer
  119. */
  120. public function getCareerId()
  121. {
  122. return $this->careerId;
  123. }
  124. /**
  125. * Set status
  126. *
  127. * @param integer $status
  128. * @return EntityPromotion
  129. */
  130. public function setStatus($status)
  131. {
  132. $this->status = $status;
  133. return $this;
  134. }
  135. /**
  136. * Get status
  137. *
  138. * @return integer
  139. */
  140. public function getStatus()
  141. {
  142. return $this->status;
  143. }
  144. /**
  145. * Set createdAt
  146. *
  147. * @param \DateTime $createdAt
  148. * @return EntityPromotion
  149. */
  150. public function setCreatedAt($createdAt)
  151. {
  152. $this->createdAt = $createdAt;
  153. return $this;
  154. }
  155. /**
  156. * Get createdAt
  157. *
  158. * @return \DateTime
  159. */
  160. public function getCreatedAt()
  161. {
  162. return $this->createdAt;
  163. }
  164. /**
  165. * Set updatedAt
  166. *
  167. * @param \DateTime $updatedAt
  168. * @return EntityPromotion
  169. */
  170. public function setUpdatedAt($updatedAt)
  171. {
  172. $this->updatedAt = $updatedAt;
  173. return $this;
  174. }
  175. /**
  176. * Get updatedAt
  177. *
  178. * @return \DateTime
  179. */
  180. public function getUpdatedAt()
  181. {
  182. return $this->updatedAt;
  183. }
  184. }