/** * Sets the duration in minutes * * @param double $value The duration in minutes. * * @throws \Ivory\GoogleMap\Exception\ServiceException If the value is not valid. */ public function setValue($value) { if (!is_numeric($value)) { throw ServiceException::invalidDurationValue(); } $this->value = $value; }