From: Raphaƫl Gertz Date: Thu, 14 Nov 2019 22:44:01 +0000 (+0100) Subject: Rename end field in length X-Git-Tag: 0.1.0~10 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/commitdiff_plain/a38d69550f8034dde0eb9cd42381ddf031c5cb7b?ds=inline 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'); } }