3 namespace Rapsys\AirBundle\Entity
; 
  36      * @var \Doctrine\Common\Collections\Collection 
  43     public function __construct() 
  45         $this->sessions 
= new \Doctrine\Common\Collections\
ArrayCollection(); 
  53     public function getId() 
  61      * @param \DateTime $begin 
  65     public function setBegin($begin) 
  67         $this->begin 
= $begin; 
  77     public function getBegin() 
  85      * @param \DateTime $length 
  89     public function setLength($length) 
  91         $this->length 
= $length; 
 101     public function getLength() 
 103         return $this->length
; 
 109      * @param \DateTime $created 
 113     public function setCreated($created) 
 115         $this->created 
= $created; 
 125     public function getCreated() 
 127         return $this->created
; 
 133      * @param \DateTime $updated 
 137     public function setUpdated($updated) 
 139         $this->updated 
= $updated; 
 149     public function getUpdated() 
 151         return $this->updated
; 
 157      * @param \Rapsys\AirBundle\Entity\Session $session 
 161     public function addSession(\Rapsys\AirBundle\Entity\Session 
$session) 
 163         $this->sessions
[] = $session; 
 171      * @param \Rapsys\AirBundle\Entity\Session $session 
 173     public function removeSession(\Rapsys\AirBundle\Entity\Session 
$session) 
 175         $this->sessions
->removeElement($session); 
 181      * @return \Doctrine\Common\Collections\Collection 
 183     public function getSessions() 
 185         return $this->sessions
; 
 188     public function getTitle() { 
 189             //TODO: replace that with computed time 
 190             return $this->begin
->format('H:i').'+'.$this->length
->format('H:i');