/**
* @var \DateTime
*/
- private $end;
+ private $length;
/**
* @var \DateTime
}
/**
- * 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;
}
/**
}
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');
}
}