X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/f110b8ba20232e0ceeb67390f8e672431868d32d..75387dd681d712476a09d05e624d50caa3ff96a9:/Entity/Slot.php 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'); } }