123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497 |
- <?php
- namespace Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Doctrine\Common\Collections\ArrayCollection;
- /**
- * Session
- *
- * @ORM\Table(name="session")
- * @ORM\Entity
- */
- class Session
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="IDENTITY")
- */
- private $id;
- /**
- * @var integer
- *
- * @ORM\Column(name="id_coach", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $idCoach;
- /**
- * @var string
- *
- * @ORM\Column(name="name", type="string", length=150, precision=0, scale=0, nullable=false, unique=false)
- */
- private $name;
- /**
- * @var integer
- *
- * @ORM\Column(name="nbr_courses", type="smallint", precision=0, scale=0, nullable=false, unique=false)
- */
- private $nbrCourses;
- /**
- * @var integer
- *
- * @ORM\Column(name="nbr_users", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $nbrUsers;
- /**
- * @var integer
- *
- * @ORM\Column(name="nbr_classes", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $nbrClasses;
- /**
- * @var integer
- *
- * @ORM\Column(name="session_admin_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $sessionAdminId;
- /**
- * @var integer
- *
- * @ORM\Column(name="visibility", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $visibility;
- /**
- * @var integer
- *
- * @ORM\Column(name="session_category_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $sessionCategoryId;
- /**
- * @var integer
- *
- * @ORM\Column(name="promotion_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $promotionId;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="display_start_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
- */
- private $displayStartDate;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="display_end_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
- */
- private $displayEndDate;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="access_start_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
- */
- private $accessStartDate;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="access_end_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
- */
- private $accessEndDate;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="coach_access_start_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
- */
- private $coachAccessStartDate;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="coach_access_end_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
- */
- private $coachAccessEndDate;
- /**
- * @ORM\OneToMany(targetEntity="CItemProperty", mappedBy="session")
- **/
- private $items;
- /**
- *
- */
- public function __construct()
- {
- $this->items = new ArrayCollection();
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set idCoach
- *
- * @param integer $idCoach
- * @return Session
- */
- public function setIdCoach($idCoach)
- {
- $this->idCoach = $idCoach;
- return $this;
- }
- /**
- * Get idCoach
- *
- * @return integer
- */
- public function getIdCoach()
- {
- return $this->idCoach;
- }
- /**
- * Set name
- *
- * @param string $name
- * @return Session
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
- /**
- * Get name
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Set nbrCourses
- *
- * @param integer $nbrCourses
- * @return Session
- */
- public function setNbrCourses($nbrCourses)
- {
- $this->nbrCourses = $nbrCourses;
- return $this;
- }
- /**
- * Get nbrCourses
- *
- * @return integer
- */
- public function getNbrCourses()
- {
- return $this->nbrCourses;
- }
- /**
- * Set nbrUsers
- *
- * @param integer $nbrUsers
- * @return Session
- */
- public function setNbrUsers($nbrUsers)
- {
- $this->nbrUsers = $nbrUsers;
- return $this;
- }
- /**
- * Get nbrUsers
- *
- * @return integer
- */
- public function getNbrUsers()
- {
- return $this->nbrUsers;
- }
- /**
- * Set nbrClasses
- *
- * @param integer $nbrClasses
- * @return Session
- */
- public function setNbrClasses($nbrClasses)
- {
- $this->nbrClasses = $nbrClasses;
- return $this;
- }
- /**
- * Get nbrClasses
- *
- * @return integer
- */
- public function getNbrClasses()
- {
- return $this->nbrClasses;
- }
- /**
- * Set sessionAdminId
- *
- * @param integer $sessionAdminId
- * @return Session
- */
- public function setSessionAdminId($sessionAdminId)
- {
- $this->sessionAdminId = $sessionAdminId;
- return $this;
- }
- /**
- * Get sessionAdminId
- *
- * @return integer
- */
- public function getSessionAdminId()
- {
- return $this->sessionAdminId;
- }
- /**
- * Set visibility
- *
- * @param integer $visibility
- * @return Session
- */
- public function setVisibility($visibility)
- {
- $this->visibility = $visibility;
- return $this;
- }
- /**
- * Get visibility
- *
- * @return integer
- */
- public function getVisibility()
- {
- return $this->visibility;
- }
- /**
- * Set sessionCategoryId
- *
- * @param integer $sessionCategoryId
- * @return Session
- */
- public function setSessionCategoryId($sessionCategoryId)
- {
- $this->sessionCategoryId = $sessionCategoryId;
- return $this;
- }
- /**
- * Get sessionCategoryId
- *
- * @return integer
- */
- public function getSessionCategoryId()
- {
- return $this->sessionCategoryId;
- }
- /**
- * Set promotionId
- *
- * @param integer $promotionId
- * @return Session
- */
- public function setPromotionId($promotionId)
- {
- $this->promotionId = $promotionId;
- return $this;
- }
- /**
- * Get promotionId
- *
- * @return integer
- */
- public function getPromotionId()
- {
- return $this->promotionId;
- }
- /**
- * Set displayStartDate
- *
- * @param \DateTime $displayStartDate
- * @return Session
- */
- public function setDisplayStartDate($displayStartDate)
- {
- $this->displayStartDate = $displayStartDate;
- return $this;
- }
- /**
- * Get displayStartDate
- *
- * @return \DateTime
- */
- public function getDisplayStartDate()
- {
- return $this->displayStartDate;
- }
- /**
- * Set displayEndDate
- *
- * @param \DateTime $displayEndDate
- * @return Session
- */
- public function setDisplayEndDate($displayEndDate)
- {
- $this->displayEndDate = $displayEndDate;
- return $this;
- }
- /**
- * Get displayEndDate
- *
- * @return \DateTime
- */
- public function getDisplayEndDate()
- {
- return $this->displayEndDate;
- }
- /**
- * Set accessStartDate
- *
- * @param \DateTime $accessStartDate
- * @return Session
- */
- public function setAccessStartDate($accessStartDate)
- {
- $this->accessStartDate = $accessStartDate;
- return $this;
- }
- /**
- * Get accessStartDate
- *
- * @return \DateTime
- */
- public function getAccessStartDate()
- {
- return $this->accessStartDate;
- }
- /**
- * Set accessEndDate
- *
- * @param \DateTime $accessEndDate
- * @return Session
- */
- public function setAccessEndDate($accessEndDate)
- {
- $this->accessEndDate = $accessEndDate;
- return $this;
- }
- /**
- * Get accessEndDate
- *
- * @return \DateTime
- */
- public function getAccessEndDate()
- {
- return $this->accessEndDate;
- }
- /**
- * Set coachAccessStartDate
- *
- * @param \DateTime $coachAccessStartDate
- * @return Session
- */
- public function setCoachAccessStartDate($coachAccessStartDate)
- {
- $this->coachAccessStartDate = $coachAccessStartDate;
- return $this;
- }
- /**
- * Get coachAccessStartDate
- *
- * @return \DateTime
- */
- public function getCoachAccessStartDate()
- {
- return $this->coachAccessStartDate;
- }
- /**
- * Set coachAccessEndDate
- *
- * @param \DateTime $coachAccessEndDate
- * @return Session
- */
- public function setCoachAccessEndDate($coachAccessEndDate)
- {
- $this->coachAccessEndDate = $coachAccessEndDate;
- return $this;
- }
- /**
- * Get coachAccessEndDate
- *
- * @return \DateTime
- */
- public function getCoachAccessEndDate()
- {
- return $this->coachAccessEndDate;
- }
- }
|