From 68663463f2ad060a95d809454e8f035dc0496cf5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 8 Dec 2020 01:22:05 +0100 Subject: [PATCH] Add score and canceled field --- Entity/Application.php | 59 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/Entity/Application.php b/Entity/Application.php index a31aa92..2e8cca5 100644 --- a/Entity/Application.php +++ b/Entity/Application.php @@ -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 * -- 2.41.1