3 namespace Rapsys\AirBundle\Entity
; 
  25         //TODO: ajouter un champ score à replir lors de l'attribution d'une session 
  26         //XXX: champ float avec une bonne capacité en décimale 
  30          * @var \Doctrine\Common\Collections\Collection 
  35          * @var \Rapsys\AirBundle\Entity\Session 
  40          * @var \Rapsys\AirBundle\Entity\User 
  47         public function __construct() { 
  48                 $this->votes 
= new \Doctrine\Common\Collections\
ArrayCollection(); 
  56         public function getId() { 
  63          * @param \DateTime $created 
  67         public function setCreated($created) { 
  68                 $this->created 
= $created; 
  78         public function getCreated() { 
  79                 return $this->created
; 
  85          * @param \DateTime $updated 
  89         public function setUpdated($updated) { 
  90                 $this->updated 
= $updated; 
 100         public function getUpdated() { 
 101                 return $this->updated
; 
 107          * @param \Rapsys\AirBundle\Entity\Vote $vote 
 109          * @return Application 
 111         public function addVote(\Rapsys\AirBundle\Entity\Vote 
$vote) { 
 112                 $this->votes
[] = $vote; 
 120          * @param \Rapsys\AirBundle\Entity\Vote $vote 
 122         public function removeVote(\Rapsys\AirBundle\Entity\Vote 
$vote) { 
 123                 $this->votes
->removeElement($vote); 
 129          * @return \Doctrine\Common\Collections\Collection 
 131         public function getVotes() { 
 138          * @param \Rapsys\AirBundle\Entity\Session $session 
 140          * @return Application 
 142         public function setSession(\Rapsys\AirBundle\Entity\Session 
$session = null) { 
 143                 $this->session 
= $session; 
 151          * @return \Rapsys\AirBundle\Entity\Session 
 153         public function getSession() { 
 154                 return $this->session
; 
 160          * @param \Rapsys\AirBundle\Entity\User $user 
 162          * @return Application 
 164         public function setUser(\Rapsys\AirBundle\Entity\User 
$user = null) { 
 173          * @return \Rapsys\AirBundle\Entity\User 
 175         public function getUser() {