EntityReservationItem.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityReservationItem
  5. *
  6. * @Table(name="reservation_item")
  7. * @Entity
  8. */
  9. class EntityReservationItem
  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 integer
  21. *
  22. * @Column(name="category_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  23. */
  24. private $categoryId;
  25. /**
  26. * @var string
  27. *
  28. * @Column(name="course_code", type="string", length=40, precision=0, scale=0, nullable=false, unique=false)
  29. */
  30. private $courseCode;
  31. /**
  32. * @var string
  33. *
  34. * @Column(name="name", type="string", length=128, precision=0, scale=0, nullable=false, unique=false)
  35. */
  36. private $name;
  37. /**
  38. * @var string
  39. *
  40. * @Column(name="description", type="text", precision=0, scale=0, nullable=false, unique=false)
  41. */
  42. private $description;
  43. /**
  44. * @var boolean
  45. *
  46. * @Column(name="blackout", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  47. */
  48. private $blackout;
  49. /**
  50. * @var integer
  51. *
  52. * @Column(name="creator", type="integer", precision=0, scale=0, nullable=false, unique=false)
  53. */
  54. private $creator;
  55. /**
  56. * @var boolean
  57. *
  58. * @Column(name="always_available", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  59. */
  60. private $alwaysAvailable;
  61. /**
  62. * Get id
  63. *
  64. * @return integer
  65. */
  66. public function getId()
  67. {
  68. return $this->id;
  69. }
  70. /**
  71. * Set categoryId
  72. *
  73. * @param integer $categoryId
  74. * @return EntityReservationItem
  75. */
  76. public function setCategoryId($categoryId)
  77. {
  78. $this->categoryId = $categoryId;
  79. return $this;
  80. }
  81. /**
  82. * Get categoryId
  83. *
  84. * @return integer
  85. */
  86. public function getCategoryId()
  87. {
  88. return $this->categoryId;
  89. }
  90. /**
  91. * Set courseCode
  92. *
  93. * @param string $courseCode
  94. * @return EntityReservationItem
  95. */
  96. public function setCourseCode($courseCode)
  97. {
  98. $this->courseCode = $courseCode;
  99. return $this;
  100. }
  101. /**
  102. * Get courseCode
  103. *
  104. * @return string
  105. */
  106. public function getCourseCode()
  107. {
  108. return $this->courseCode;
  109. }
  110. /**
  111. * Set name
  112. *
  113. * @param string $name
  114. * @return EntityReservationItem
  115. */
  116. public function setName($name)
  117. {
  118. $this->name = $name;
  119. return $this;
  120. }
  121. /**
  122. * Get name
  123. *
  124. * @return string
  125. */
  126. public function getName()
  127. {
  128. return $this->name;
  129. }
  130. /**
  131. * Set description
  132. *
  133. * @param string $description
  134. * @return EntityReservationItem
  135. */
  136. public function setDescription($description)
  137. {
  138. $this->description = $description;
  139. return $this;
  140. }
  141. /**
  142. * Get description
  143. *
  144. * @return string
  145. */
  146. public function getDescription()
  147. {
  148. return $this->description;
  149. }
  150. /**
  151. * Set blackout
  152. *
  153. * @param boolean $blackout
  154. * @return EntityReservationItem
  155. */
  156. public function setBlackout($blackout)
  157. {
  158. $this->blackout = $blackout;
  159. return $this;
  160. }
  161. /**
  162. * Get blackout
  163. *
  164. * @return boolean
  165. */
  166. public function getBlackout()
  167. {
  168. return $this->blackout;
  169. }
  170. /**
  171. * Set creator
  172. *
  173. * @param integer $creator
  174. * @return EntityReservationItem
  175. */
  176. public function setCreator($creator)
  177. {
  178. $this->creator = $creator;
  179. return $this;
  180. }
  181. /**
  182. * Get creator
  183. *
  184. * @return integer
  185. */
  186. public function getCreator()
  187. {
  188. return $this->creator;
  189. }
  190. /**
  191. * Set alwaysAvailable
  192. *
  193. * @param boolean $alwaysAvailable
  194. * @return EntityReservationItem
  195. */
  196. public function setAlwaysAvailable($alwaysAvailable)
  197. {
  198. $this->alwaysAvailable = $alwaysAvailable;
  199. return $this;
  200. }
  201. /**
  202. * Get alwaysAvailable
  203. *
  204. * @return boolean
  205. */
  206. public function getAlwaysAvailable()
  207. {
  208. return $this->alwaysAvailable;
  209. }
  210. }