X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/af2a5ccc05e664274d24ee8711d398d7dec8808d..044c68173d07f72a6495bdfab65f4692e550d21e:/Entity/Application.php?ds=sidebyside diff --git a/Entity/Application.php b/Entity/Application.php index a31aa92..af4d3a9 100644 --- a/Entity/Application.php +++ b/Entity/Application.php @@ -12,24 +12,24 @@ class Application { private $id; /** - * @var \DateTime + * @var float */ - private $created; + private $score; /** * @var \DateTime */ - private $updated; - - - //TODO: ajouter un champ score à replir lors de l'attribution d'une session - //XXX: champ float avec une bonne capacité en décimale + private $canceled; + /** + * @var \DateTime + */ + private $created; /** - * @var \Doctrine\Common\Collections\Collection + * @var \DateTime */ - private $votes; + private $updated; /** * @var \Rapsys\AirBundle\Entity\Session @@ -41,13 +41,6 @@ class Application { */ private $user; - /** - * Constructor - */ - public function __construct() { - $this->votes = new \Doctrine\Common\Collections\ArrayCollection(); - } - /** * Get id * @@ -58,78 +51,91 @@ class Application { } /** - * Set created + * Set score * - * @param \DateTime $created + * @param float $score * * @return Application */ - public function setCreated($created) { - $this->created = $created; + public function setScore($score) { + $this->score = $score; return $this; } /** - * Get created + * Get score * - * @return \DateTime + * @return float */ - public function getCreated() { - return $this->created; + public function getScore() { + return $this->score; } /** - * Set updated + * Set canceled * - * @param \DateTime $updated + * @param \DateTime $canceled * * @return Application */ - public function setUpdated($updated) { - $this->updated = $updated; + public function setCanceled($canceled) { + $this->canceled = $canceled; return $this; } /** - * Get updated + * Get canceled * * @return \DateTime */ - public function getUpdated() { - return $this->updated; + public function getCanceled() { + return $this->canceled; } /** - * Add vote + * Set created * - * @param \Rapsys\AirBundle\Entity\Vote $vote + * @param \DateTime $created * * @return Application */ - public function addVote(\Rapsys\AirBundle\Entity\Vote $vote) { - $this->votes[] = $vote; + public function setCreated($created) { + $this->created = $created; return $this; } /** - * Remove vote + * Get created * - * @param \Rapsys\AirBundle\Entity\Vote $vote + * @return \DateTime */ - public function removeVote(\Rapsys\AirBundle\Entity\Vote $vote) { - $this->votes->removeElement($vote); + public function getCreated() { + return $this->created; } /** - * Get votes + * Set updated * - * @return \Doctrine\Common\Collections\Collection + * @param \DateTime $updated + * + * @return Application */ - public function getVotes() { - return $this->votes; + public function setUpdated($updated) { + $this->updated = $updated; + + return $this; + } + + /** + * Get updated + * + * @return \DateTime + */ + public function getUpdated() { + return $this->updated; } /**