session.class.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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 Session extends \Entity
  10. {
  11. /**
  12. * @return \Entity\Repository\SessionRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\SessionRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Session
  19. */
  20. public static function create(){
  21. return new self();
  22. }
  23. /**
  24. * @var smallint $id
  25. */
  26. protected $id;
  27. /**
  28. * @var integer $id_coach
  29. */
  30. protected $id_coach;
  31. /**
  32. * @var string $name
  33. */
  34. protected $name;
  35. /**
  36. * @var smallint $nbr_courses
  37. */
  38. protected $nbr_courses;
  39. /**
  40. * @var integer $nbr_users
  41. */
  42. protected $nbr_users;
  43. /**
  44. * @var integer $nbr_classes
  45. */
  46. protected $nbr_classes;
  47. /**
  48. * @var date $date_start
  49. */
  50. protected $date_start;
  51. /**
  52. * @var date $date_end
  53. */
  54. protected $date_end;
  55. /**
  56. * @var boolean $nb_days_access_before_beginning
  57. */
  58. protected $nb_days_access_before_beginning;
  59. /**
  60. * @var boolean $nb_days_access_after_end
  61. */
  62. protected $nb_days_access_after_end;
  63. /**
  64. * @var integer $session_admin_id
  65. */
  66. protected $session_admin_id;
  67. /**
  68. * @var integer $visibility
  69. */
  70. protected $visibility;
  71. /**
  72. * @var integer $session_category_id
  73. */
  74. protected $session_category_id;
  75. /**
  76. * @var integer $promotion_id
  77. */
  78. protected $promotion_id;
  79. /**
  80. * Get id
  81. *
  82. * @return smallint
  83. */
  84. public function get_id()
  85. {
  86. return $this->id;
  87. }
  88. /**
  89. * Set id_coach
  90. *
  91. * @param integer $value
  92. * @return Session
  93. */
  94. public function set_id_coach($value)
  95. {
  96. $this->id_coach = $value;
  97. return $this;
  98. }
  99. /**
  100. * Get id_coach
  101. *
  102. * @return integer
  103. */
  104. public function get_id_coach()
  105. {
  106. return $this->id_coach;
  107. }
  108. /**
  109. * Set name
  110. *
  111. * @param string $value
  112. * @return Session
  113. */
  114. public function set_name($value)
  115. {
  116. $this->name = $value;
  117. return $this;
  118. }
  119. /**
  120. * Get name
  121. *
  122. * @return string
  123. */
  124. public function get_name()
  125. {
  126. return $this->name;
  127. }
  128. /**
  129. * Set nbr_courses
  130. *
  131. * @param smallint $value
  132. * @return Session
  133. */
  134. public function set_nbr_courses($value)
  135. {
  136. $this->nbr_courses = $value;
  137. return $this;
  138. }
  139. /**
  140. * Get nbr_courses
  141. *
  142. * @return smallint
  143. */
  144. public function get_nbr_courses()
  145. {
  146. return $this->nbr_courses;
  147. }
  148. /**
  149. * Set nbr_users
  150. *
  151. * @param integer $value
  152. * @return Session
  153. */
  154. public function set_nbr_users($value)
  155. {
  156. $this->nbr_users = $value;
  157. return $this;
  158. }
  159. /**
  160. * Get nbr_users
  161. *
  162. * @return integer
  163. */
  164. public function get_nbr_users()
  165. {
  166. return $this->nbr_users;
  167. }
  168. /**
  169. * Set nbr_classes
  170. *
  171. * @param integer $value
  172. * @return Session
  173. */
  174. public function set_nbr_classes($value)
  175. {
  176. $this->nbr_classes = $value;
  177. return $this;
  178. }
  179. /**
  180. * Get nbr_classes
  181. *
  182. * @return integer
  183. */
  184. public function get_nbr_classes()
  185. {
  186. return $this->nbr_classes;
  187. }
  188. /**
  189. * Set date_start
  190. *
  191. * @param date $value
  192. * @return Session
  193. */
  194. public function set_date_start($value)
  195. {
  196. $this->date_start = $value;
  197. return $this;
  198. }
  199. /**
  200. * Get date_start
  201. *
  202. * @return date
  203. */
  204. public function get_date_start()
  205. {
  206. return $this->date_start;
  207. }
  208. /**
  209. * Set date_end
  210. *
  211. * @param date $value
  212. * @return Session
  213. */
  214. public function set_date_end($value)
  215. {
  216. $this->date_end = $value;
  217. return $this;
  218. }
  219. /**
  220. * Get date_end
  221. *
  222. * @return date
  223. */
  224. public function get_date_end()
  225. {
  226. return $this->date_end;
  227. }
  228. /**
  229. * Set nb_days_access_before_beginning
  230. *
  231. * @param boolean $value
  232. * @return Session
  233. */
  234. public function set_nb_days_access_before_beginning($value)
  235. {
  236. $this->nb_days_access_before_beginning = $value;
  237. return $this;
  238. }
  239. /**
  240. * Get nb_days_access_before_beginning
  241. *
  242. * @return boolean
  243. */
  244. public function get_nb_days_access_before_beginning()
  245. {
  246. return $this->nb_days_access_before_beginning;
  247. }
  248. /**
  249. * Set nb_days_access_after_end
  250. *
  251. * @param boolean $value
  252. * @return Session
  253. */
  254. public function set_nb_days_access_after_end($value)
  255. {
  256. $this->nb_days_access_after_end = $value;
  257. return $this;
  258. }
  259. /**
  260. * Get nb_days_access_after_end
  261. *
  262. * @return boolean
  263. */
  264. public function get_nb_days_access_after_end()
  265. {
  266. return $this->nb_days_access_after_end;
  267. }
  268. /**
  269. * Set session_admin_id
  270. *
  271. * @param integer $value
  272. * @return Session
  273. */
  274. public function set_session_admin_id($value)
  275. {
  276. $this->session_admin_id = $value;
  277. return $this;
  278. }
  279. /**
  280. * Get session_admin_id
  281. *
  282. * @return integer
  283. */
  284. public function get_session_admin_id()
  285. {
  286. return $this->session_admin_id;
  287. }
  288. /**
  289. * Set visibility
  290. *
  291. * @param integer $value
  292. * @return Session
  293. */
  294. public function set_visibility($value)
  295. {
  296. $this->visibility = $value;
  297. return $this;
  298. }
  299. /**
  300. * Get visibility
  301. *
  302. * @return integer
  303. */
  304. public function get_visibility()
  305. {
  306. return $this->visibility;
  307. }
  308. /**
  309. * Set session_category_id
  310. *
  311. * @param integer $value
  312. * @return Session
  313. */
  314. public function set_session_category_id($value)
  315. {
  316. $this->session_category_id = $value;
  317. return $this;
  318. }
  319. /**
  320. * Get session_category_id
  321. *
  322. * @return integer
  323. */
  324. public function get_session_category_id()
  325. {
  326. return $this->session_category_id;
  327. }
  328. /**
  329. * Set promotion_id
  330. *
  331. * @param integer $value
  332. * @return Session
  333. */
  334. public function set_promotion_id($value)
  335. {
  336. $this->promotion_id = $value;
  337. return $this;
  338. }
  339. /**
  340. * Get promotion_id
  341. *
  342. * @return integer
  343. */
  344. public function get_promotion_id()
  345. {
  346. return $this->promotion_id;
  347. }
  348. }