From 2469858ea89324e2d218ce8ad305f7e36f953bca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 14 Oct 2020 03:54:31 +0200 Subject: [PATCH] Rename end field in length Cleanup --- Entity/Application.php | 5 +++++ Entity/Session.php | 34 +++++++++++++++++----------------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/Entity/Application.php b/Entity/Application.php index c922932..a31aa92 100644 --- a/Entity/Application.php +++ b/Entity/Application.php @@ -21,6 +21,11 @@ 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 */ diff --git a/Entity/Session.php b/Entity/Session.php index 72d1f33..6a0f138 100644 --- a/Entity/Session.php +++ b/Entity/Session.php @@ -24,7 +24,7 @@ class Session { /** * @var \DateTime */ - private $end; + private $length; /** * @var \DateTime @@ -37,9 +37,9 @@ class Session { private $updated; /** - * @var \Doctrine\Common\Collections\Collection + * @var \Rapsys\AirBundle\Entity\Application */ - private $applications; + private $application; /** * @var \Rapsys\AirBundle\Entity\Location @@ -47,9 +47,14 @@ class Session { private $location; /** - * @var \Rapsys\AirBundle\Entity\Application + * @var \Rapsys\AirBundle\Entity\Slot */ - private $application; + private $slot; + + /** + * @var \Doctrine\Common\Collections\Collection + */ + private $applications; /** * Constructor @@ -112,25 +117,25 @@ class Session { } /** - * Set end + * Set length * - * @param \DateTime $end + * @param \DateTime $length * * @return Session */ - public function setEnd($end) { - $this->end = $end; + public function setLength($length) { + $this->length = $length; return $this; } /** - * Get end + * Get length * * @return \DateTime */ - public function getEnd() { - return $this->end; + public function getLength() { + return $this->length; } /** @@ -229,11 +234,6 @@ class Session { public function getLocation() { return $this->location; } - /** - * @var \Rapsys\AirBundle\Entity\Slot - */ - private $slot; - /** * Set slot -- 2.41.0