From: Raphaƫl Gertz Date: Thu, 14 Nov 2019 22:44:01 +0000 (+0100) Subject: Rename end field in length X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/b222bc0c2efa3ab0474eb7dd8e7d5c2ffdd03168 Rename end field in length --- diff --git a/Entity/Slot.php b/Entity/Slot.php index 03bfd3f..12a0aca 100644 --- a/Entity/Slot.php +++ b/Entity/Slot.php @@ -20,7 +20,7 @@ class Slot /** * @var \DateTime */ - private $end; + private $length; /** * @var \DateTime @@ -80,27 +80,27 @@ class Slot } /** - * Set end + * Set length * - * @param \DateTime $end + * @param \DateTime $length * * @return Slot */ - public function setEnd($end) + public function setLength($length) { - $this->end = $end; + $this->length = $length; return $this; } /** - * Get end + * Get length * * @return \DateTime */ - public function getEnd() + public function getLength() { - return $this->end; + return $this->length; } /** @@ -186,6 +186,7 @@ class Slot } public function getTitle() { - return $this->begin->format('H:i').'-'.$this->end->format('H:i'); + //TODO: replace that with computed time + return $this->begin->format('H:i').'+'.$this->length->format('H:i'); } }