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