original_string: public function asTime(): TimeType
      {
          if (!$this->_element instanceof TimeType) {
              throw new \UnexpectedValueException(
                  $this->_generateExceptionMessage(Element::TYPE_TIME));
          }
          return $this->_element;
      }
code: public function asTime(): TimeType
      {
          if (!$this->_element instanceof TimeType) {
              throw new \UnexpectedValueException(
                  $this->_generateExceptionMessage(Element::TYPE_TIME));
          }
          return $this->_element;
      }
code_tokens: public function asTime ( ) : TimeType { if ( ! $ this -> _element instanceof TimeType ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_TIME ) ) ; } return $ this -> _element ; }
docstring: Get the wrapped element as any time type.
  
  @throws \UnexpectedValueException If the element is not a time
  @return TimeType
docstring_tokens: Get the wrapped element as any time type .