public function asTime(): TimeType
    {
        if (!$this->_element instanceof TimeType) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_TIME));
        }
        return $this->_element;
    }
public function asTime(): TimeType
    {
        if (!$this->_element instanceof TimeType) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_TIME));
        }
        return $this->_element;
    }
public function asTime ( ) : TimeType { if ( ! $ this -> _element instanceof TimeType ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_TIME ) ) ; } return $ this -> _element ; }
Get the wrapped element as any time type.

@throws \UnexpectedValueException If the element is not a time
@return TimeType
Get the wrapped element as any time type .