]> Raphaël G. Git Repositories - airbundle/blobdiff - Entity/Application.php
Add score and canceled field
[airbundle] / Entity / Application.php
index a31aa92e966d0205b70f8c08398c14764ee1375d..2e8cca52177315e2eec06f0ad32bc1d0fcdb6116 100644 (file)
@@ -11,6 +11,16 @@ class Application {
         */
        private $id;
 
         */
        private $id;
 
+       /**
+        * @var float
+        */
+       private $score;
+
+       /**
+        * @var \DateTime
+        */
+       private $canceled;
+
        /**
         * @var \DateTime
         */
        /**
         * @var \DateTime
         */
@@ -21,11 +31,6 @@ class Application {
         */
        private $updated;
 
         */
        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
-
-
        /**
         * @var \Doctrine\Common\Collections\Collection
         */
        /**
         * @var \Doctrine\Common\Collections\Collection
         */
@@ -57,6 +62,50 @@ class Application {
                return $this->id;
        }
 
                return $this->id;
        }
 
+       /**
+        * Set score
+        *
+        * @param float $score
+        *
+        * @return Application
+        */
+       public function setScore($score) {
+               $this->score = $score;
+
+               return $this;
+       }
+
+       /**
+        * Get score
+        *
+        * @return float
+        */
+       public function getScore() {
+               return $this->score;
+       }
+
+       /**
+        * Set canceled
+        *
+        * @param \DateTime $canceled
+        *
+        * @return Application
+        */
+       public function setCanceled($canceled) {
+               $this->canceled = $canceled;
+
+               return $this;
+       }
+
+       /**
+        * Get canceled
+        *
+        * @return \DateTime
+        */
+       public function getCanceled() {
+               return $this->canceled;
+       }
+
        /**
         * Set created
         *
        /**
         * Set created
         *