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 $end
89 public function setEnd($end)
101 public function getEnd()
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 return $this->begin
->format('H:i').'-'.$this->end
->format('H:i');