]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Application.php
Remove Vote entity
[airbundle] / Entity / Application.php
index c9229328a4d214159a13564c2580d25a279996e3..af4d3a9054077551a6a48e2353e3544fa62c6ea3 100644 (file)
@@ -11,20 +11,25 @@ class Application {
         */
        private $id;
 
         */
        private $id;
 
+       /**
+        * @var float
+        */
+       private $score;
+
        /**
         * @var \DateTime
         */
        /**
         * @var \DateTime
         */
-       private $created;
+       private $canceled;
 
        /**
         * @var \DateTime
         */
 
        /**
         * @var \DateTime
         */
-       private $updated;
+       private $created;
 
        /**
 
        /**
-        * @var \Doctrine\Common\Collections\Collection
+        * @var \DateTime
         */
         */
-       private $votes;
+       private $updated;
 
        /**
         * @var \Rapsys\AirBundle\Entity\Session
 
        /**
         * @var \Rapsys\AirBundle\Entity\Session
@@ -36,13 +41,6 @@ class Application {
         */
        private $user;
 
         */
        private $user;
 
-       /**
-        * Constructor
-        */
-       public function __construct() {
-               $this->votes = new \Doctrine\Common\Collections\ArrayCollection();
-       }
-
        /**
         * Get id
         *
        /**
         * Get id
         *
@@ -53,78 +51,91 @@ class Application {
        }
 
        /**
        }
 
        /**
-        * Set created
+        * Set score
         *
         *
-        * @param \DateTime $created
+        * @param float $score
         *
         * @return Application
         */
         *
         * @return Application
         */
-       public function setCreated($created) {
-               $this->created = $created;
+       public function setScore($score) {
+               $this->score = $score;
 
                return $this;
        }
 
        /**
 
                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
         */
         *
         * @return Application
         */
-       public function setUpdated($updated) {
-               $this->updated = $updated;
+       public function setCanceled($canceled) {
+               $this->canceled = $canceled;
 
                return $this;
        }
 
        /**
 
                return $this;
        }
 
        /**
-        * Get updated
+        * Get canceled
         *
         * @return \DateTime
         */
         *
         * @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
         */
         *
         * @return Application
         */
-       public function addVote(\Rapsys\AirBundle\Entity\Vote $vote) {
-               $this->votes[] = $vote;
+       public function setCreated($created) {
+               $this->created = $created;
 
                return $this;
        }
 
        /**
 
                return $this;
        }
 
        /**
-        * Remove vote
+        * Get created
+        *
+        * @return \DateTime
+        */
+       public function getCreated() {
+               return $this->created;
+       }
+
+       /**
+        * Set updated
+        *
+        * @param \DateTime $updated
         *
         *
-        * @param \Rapsys\AirBundle\Entity\Vote $vote
+        * @return Application
         */
         */
-       public function removeVote(\Rapsys\AirBundle\Entity\Vote $vote) {
-               $this->votes->removeElement($vote);
+       public function setUpdated($updated) {
+               $this->updated = $updated;
+
+               return $this;
        }
 
        /**
        }
 
        /**
-        * Get votes
+        * Get updated
         *
         *
-        * @return \Doctrine\Common\Collections\Collection
+        * @return \DateTime
         */
         */
-       public function getVotes() {
-               return $this->votes;
+       public function getUpdated() {
+               return $this->updated;
        }
 
        /**
        }
 
        /**