]> Raphaël G. Git Repositories - airbundle/commitdiff
Add score and canceled field
authorRaphaël Gertz <git@rapsys.eu>
Tue, 8 Dec 2020 00:22:05 +0000 (01:22 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 8 Dec 2020 00:22:05 +0000 (01:22 +0100)
Entity/Application.php

index a31aa92e966d0205b70f8c08398c14764ee1375d..2e8cca52177315e2eec06f0ad32bc1d0fcdb6116 100644 (file)
@@ -11,6 +11,16 @@ class Application {
         */
        private $id;
 
+       /**
+        * @var float
+        */
+       private $score;
+
+       /**
+        * @var \DateTime
+        */
+       private $canceled;
+
        /**
         * @var \DateTime
         */
@@ -21,11 +31,6 @@ class Application {
         */
        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
         */
@@ -57,6 +62,50 @@ class Application {
                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
         *