EntitySession.php 9.6 KB

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