Session.php 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6. * Session
  7. *
  8. * @ORM\Table(name="session")
  9. * @ORM\Entity
  10. */
  11. class Session
  12. {
  13. /**
  14. * @var integer
  15. *
  16. * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. */
  20. private $id;
  21. /**
  22. * @var integer
  23. *
  24. * @ORM\Column(name="id_coach", type="integer", precision=0, scale=0, nullable=false, unique=false)
  25. */
  26. private $idCoach;
  27. /**
  28. * @var string
  29. *
  30. * @ORM\Column(name="name", type="string", length=150, precision=0, scale=0, nullable=false, unique=false)
  31. */
  32. private $name;
  33. /**
  34. * @var integer
  35. *
  36. * @ORM\Column(name="nbr_courses", type="smallint", precision=0, scale=0, nullable=false, unique=false)
  37. */
  38. private $nbrCourses;
  39. /**
  40. * @var integer
  41. *
  42. * @ORM\Column(name="nbr_users", type="integer", precision=0, scale=0, nullable=false, unique=false)
  43. */
  44. private $nbrUsers;
  45. /**
  46. * @var integer
  47. *
  48. * @ORM\Column(name="nbr_classes", type="integer", precision=0, scale=0, nullable=false, unique=false)
  49. */
  50. private $nbrClasses;
  51. /**
  52. * @var integer
  53. *
  54. * @ORM\Column(name="session_admin_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  55. */
  56. private $sessionAdminId;
  57. /**
  58. * @var integer
  59. *
  60. * @ORM\Column(name="visibility", type="integer", precision=0, scale=0, nullable=false, unique=false)
  61. */
  62. private $visibility;
  63. /**
  64. * @var integer
  65. *
  66. * @ORM\Column(name="session_category_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  67. */
  68. private $sessionCategoryId;
  69. /**
  70. * @var integer
  71. *
  72. * @ORM\Column(name="promotion_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  73. */
  74. private $promotionId;
  75. /**
  76. * @var \DateTime
  77. *
  78. * @ORM\Column(name="display_start_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  79. */
  80. private $displayStartDate;
  81. /**
  82. * @var \DateTime
  83. *
  84. * @ORM\Column(name="display_end_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  85. */
  86. private $displayEndDate;
  87. /**
  88. * @var \DateTime
  89. *
  90. * @ORM\Column(name="access_start_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  91. */
  92. private $accessStartDate;
  93. /**
  94. * @var \DateTime
  95. *
  96. * @ORM\Column(name="access_end_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  97. */
  98. private $accessEndDate;
  99. /**
  100. * @var \DateTime
  101. *
  102. * @ORM\Column(name="coach_access_start_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  103. */
  104. private $coachAccessStartDate;
  105. /**
  106. * @var \DateTime
  107. *
  108. * @ORM\Column(name="coach_access_end_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  109. */
  110. private $coachAccessEndDate;
  111. /**
  112. * @ORM\OneToMany(targetEntity="CItemProperty", mappedBy="session")
  113. **/
  114. private $items;
  115. /**
  116. *
  117. */
  118. public function __construct()
  119. {
  120. $this->items = new ArrayCollection();
  121. }
  122. /**
  123. * Get id
  124. *
  125. * @return integer
  126. */
  127. public function getId()
  128. {
  129. return $this->id;
  130. }
  131. /**
  132. * Set idCoach
  133. *
  134. * @param integer $idCoach
  135. * @return Session
  136. */
  137. public function setIdCoach($idCoach)
  138. {
  139. $this->idCoach = $idCoach;
  140. return $this;
  141. }
  142. /**
  143. * Get idCoach
  144. *
  145. * @return integer
  146. */
  147. public function getIdCoach()
  148. {
  149. return $this->idCoach;
  150. }
  151. /**
  152. * Set name
  153. *
  154. * @param string $name
  155. * @return Session
  156. */
  157. public function setName($name)
  158. {
  159. $this->name = $name;
  160. return $this;
  161. }
  162. /**
  163. * Get name
  164. *
  165. * @return string
  166. */
  167. public function getName()
  168. {
  169. return $this->name;
  170. }
  171. /**
  172. * Set nbrCourses
  173. *
  174. * @param integer $nbrCourses
  175. * @return Session
  176. */
  177. public function setNbrCourses($nbrCourses)
  178. {
  179. $this->nbrCourses = $nbrCourses;
  180. return $this;
  181. }
  182. /**
  183. * Get nbrCourses
  184. *
  185. * @return integer
  186. */
  187. public function getNbrCourses()
  188. {
  189. return $this->nbrCourses;
  190. }
  191. /**
  192. * Set nbrUsers
  193. *
  194. * @param integer $nbrUsers
  195. * @return Session
  196. */
  197. public function setNbrUsers($nbrUsers)
  198. {
  199. $this->nbrUsers = $nbrUsers;
  200. return $this;
  201. }
  202. /**
  203. * Get nbrUsers
  204. *
  205. * @return integer
  206. */
  207. public function getNbrUsers()
  208. {
  209. return $this->nbrUsers;
  210. }
  211. /**
  212. * Set nbrClasses
  213. *
  214. * @param integer $nbrClasses
  215. * @return Session
  216. */
  217. public function setNbrClasses($nbrClasses)
  218. {
  219. $this->nbrClasses = $nbrClasses;
  220. return $this;
  221. }
  222. /**
  223. * Get nbrClasses
  224. *
  225. * @return integer
  226. */
  227. public function getNbrClasses()
  228. {
  229. return $this->nbrClasses;
  230. }
  231. /**
  232. * Set sessionAdminId
  233. *
  234. * @param integer $sessionAdminId
  235. * @return Session
  236. */
  237. public function setSessionAdminId($sessionAdminId)
  238. {
  239. $this->sessionAdminId = $sessionAdminId;
  240. return $this;
  241. }
  242. /**
  243. * Get sessionAdminId
  244. *
  245. * @return integer
  246. */
  247. public function getSessionAdminId()
  248. {
  249. return $this->sessionAdminId;
  250. }
  251. /**
  252. * Set visibility
  253. *
  254. * @param integer $visibility
  255. * @return Session
  256. */
  257. public function setVisibility($visibility)
  258. {
  259. $this->visibility = $visibility;
  260. return $this;
  261. }
  262. /**
  263. * Get visibility
  264. *
  265. * @return integer
  266. */
  267. public function getVisibility()
  268. {
  269. return $this->visibility;
  270. }
  271. /**
  272. * Set sessionCategoryId
  273. *
  274. * @param integer $sessionCategoryId
  275. * @return Session
  276. */
  277. public function setSessionCategoryId($sessionCategoryId)
  278. {
  279. $this->sessionCategoryId = $sessionCategoryId;
  280. return $this;
  281. }
  282. /**
  283. * Get sessionCategoryId
  284. *
  285. * @return integer
  286. */
  287. public function getSessionCategoryId()
  288. {
  289. return $this->sessionCategoryId;
  290. }
  291. /**
  292. * Set promotionId
  293. *
  294. * @param integer $promotionId
  295. * @return Session
  296. */
  297. public function setPromotionId($promotionId)
  298. {
  299. $this->promotionId = $promotionId;
  300. return $this;
  301. }
  302. /**
  303. * Get promotionId
  304. *
  305. * @return integer
  306. */
  307. public function getPromotionId()
  308. {
  309. return $this->promotionId;
  310. }
  311. /**
  312. * Set displayStartDate
  313. *
  314. * @param \DateTime $displayStartDate
  315. * @return Session
  316. */
  317. public function setDisplayStartDate($displayStartDate)
  318. {
  319. $this->displayStartDate = $displayStartDate;
  320. return $this;
  321. }
  322. /**
  323. * Get displayStartDate
  324. *
  325. * @return \DateTime
  326. */
  327. public function getDisplayStartDate()
  328. {
  329. return $this->displayStartDate;
  330. }
  331. /**
  332. * Set displayEndDate
  333. *
  334. * @param \DateTime $displayEndDate
  335. * @return Session
  336. */
  337. public function setDisplayEndDate($displayEndDate)
  338. {
  339. $this->displayEndDate = $displayEndDate;
  340. return $this;
  341. }
  342. /**
  343. * Get displayEndDate
  344. *
  345. * @return \DateTime
  346. */
  347. public function getDisplayEndDate()
  348. {
  349. return $this->displayEndDate;
  350. }
  351. /**
  352. * Set accessStartDate
  353. *
  354. * @param \DateTime $accessStartDate
  355. * @return Session
  356. */
  357. public function setAccessStartDate($accessStartDate)
  358. {
  359. $this->accessStartDate = $accessStartDate;
  360. return $this;
  361. }
  362. /**
  363. * Get accessStartDate
  364. *
  365. * @return \DateTime
  366. */
  367. public function getAccessStartDate()
  368. {
  369. return $this->accessStartDate;
  370. }
  371. /**
  372. * Set accessEndDate
  373. *
  374. * @param \DateTime $accessEndDate
  375. * @return Session
  376. */
  377. public function setAccessEndDate($accessEndDate)
  378. {
  379. $this->accessEndDate = $accessEndDate;
  380. return $this;
  381. }
  382. /**
  383. * Get accessEndDate
  384. *
  385. * @return \DateTime
  386. */
  387. public function getAccessEndDate()
  388. {
  389. return $this->accessEndDate;
  390. }
  391. /**
  392. * Set coachAccessStartDate
  393. *
  394. * @param \DateTime $coachAccessStartDate
  395. * @return Session
  396. */
  397. public function setCoachAccessStartDate($coachAccessStartDate)
  398. {
  399. $this->coachAccessStartDate = $coachAccessStartDate;
  400. return $this;
  401. }
  402. /**
  403. * Get coachAccessStartDate
  404. *
  405. * @return \DateTime
  406. */
  407. public function getCoachAccessStartDate()
  408. {
  409. return $this->coachAccessStartDate;
  410. }
  411. /**
  412. * Set coachAccessEndDate
  413. *
  414. * @param \DateTime $coachAccessEndDate
  415. * @return Session
  416. */
  417. public function setCoachAccessEndDate($coachAccessEndDate)
  418. {
  419. $this->coachAccessEndDate = $coachAccessEndDate;
  420. return $this;
  421. }
  422. /**
  423. * Get coachAccessEndDate
  424. *
  425. * @return \DateTime
  426. */
  427. public function getCoachAccessEndDate()
  428. {
  429. return $this->coachAccessEndDate;
  430. }
  431. }