original_string: public final function getPhpCode() : string
     {
  
        $str = $this->stringValue;
  
        switch ( $this->typeName )
        {
  
           case Type::PHP_BOOLEAN:
           case 'boolean':
              return ( $this->value ? 'true' : 'false' );
  
           case Type::PHP_DOUBLE:
           case Type::PHP_FLOAT:
           case Type::PHP_INTEGER:
           case 'integer':
              return $str;
  
           case Type::PHP_STRING:
              if ( \preg_match( "~[\r\n\t]+~", $str ) )
              {
                 $str = \str_replace(
                    array( '\\',  "\r", "\n", "\t", "\0", '"',  '$' ),
                    array( '\\\\','\\r','\\n','\\t','\\0','\\"','\\$' ),
                    $str
                 );
                 return '"' . $str . '"';
              }
              return "'" . \str_replace(
                    array( '\\',   "'" ),
                    array( '\\\\', "\\'" ),
                    $str
                 )
                 . "'";
  
           case Type::PHP_RESOURCE:
           case Type::PHP_NULL:
           case Type::PHP_UNKNOWN:
              return 'null';
  
           default:
              $str = \serialize( $this->value );
              if ( \preg_match( "~[\r\n\t]+~", $str ) )
              {
                 $str = \str_replace(
                    array( '\\',  "\r", "\n", "\t", "\0", '"',  '$' ),
                    array( '\\\\','\\r','\\n','\\t','\\0','\\"','\\$' ),
                    $str
                 );
              }
              else
              {
                 $str = \str_replace(
                    array('\\',   '"',   '$'),
                    array('\\\\', '\\"', '\\$'),
                    $str );
              }
              return '\unserialize("' . $str . '")';
  
        }
  
     }
code: public final function getPhpCode() : string
     {
  
        $str = $this->stringValue;
  
        switch ( $this->typeName )
        {
  
           case Type::PHP_BOOLEAN:
           case 'boolean':
              return ( $this->value ? 'true' : 'false' );
  
           case Type::PHP_DOUBLE:
           case Type::PHP_FLOAT:
           case Type::PHP_INTEGER:
           case 'integer':
              return $str;
  
           case Type::PHP_STRING:
              if ( \preg_match( "~[\r\n\t]+~", $str ) )
              {
                 $str = \str_replace(
                    array( '\\',  "\r", "\n", "\t", "\0", '"',  '$' ),
                    array( '\\\\','\\r','\\n','\\t','\\0','\\"','\\$' ),
                    $str
                 );
                 return '"' . $str . '"';
              }
              return "'" . \str_replace(
                    array( '\\',   "'" ),
                    array( '\\\\', "\\'" ),
                    $str
                 )
                 . "'";
  
           case Type::PHP_RESOURCE:
           case Type::PHP_NULL:
           case Type::PHP_UNKNOWN:
              return 'null';
  
           default:
              $str = \serialize( $this->value );
              if ( \preg_match( "~[\r\n\t]+~", $str ) )
              {
                 $str = \str_replace(
                    array( '\\',  "\r", "\n", "\t", "\0", '"',  '$' ),
                    array( '\\\\','\\r','\\n','\\t','\\0','\\"','\\$' ),
                    $str
                 );
              }
              else
              {
                 $str = \str_replace(
                    array('\\',   '"',   '$'),
                    array('\\\\', '\\"', '\\$'),
                    $str );
              }
              return '\unserialize("' . $str . '")';
  
        }
  
     }
code_tokens: public final function getPhpCode ( ) : string { $ str = $ this -> stringValue ; switch ( $ this -> typeName ) { case Type :: PHP_BOOLEAN : case 'boolean' : return ( $ this -> value ? 'true' : 'false' ) ; case Type :: PHP_DOUBLE : case Type :: PHP_FLOAT : case Type :: PHP_INTEGER : case 'integer' : return $ str ; case Type :: PHP_STRING : if ( \ preg_match ( "~[\r\n\t]+~" , $ str ) ) { $ str = \ str_replace ( array ( '\\' , "\r" , "\n" , "\t" , "\0" , '"' , '$' ) , array ( '\\\\' , '\\r' , '\\n' , '\\t' , '\\0' , '\\"' , '\\$' ) , $ str ) ; return '"' . $ str . '"' ; } return "'" . \ str_replace ( array ( '\\' , "'" ) , array ( '\\\\' , "\\'" ) , $ str ) . "'" ; case Type :: PHP_RESOURCE : case Type :: PHP_NULL : case Type :: PHP_UNKNOWN : return 'null' ; default : $ str = \ serialize ( $ this -> value ) ; if ( \ preg_match ( "~[\r\n\t]+~" , $ str ) ) { $ str = \ str_replace ( array ( '\\' , "\r" , "\n" , "\t" , "\0" , '"' , '$' ) , array ( '\\\\' , '\\r' , '\\n' , '\\t' , '\\0' , '\\"' , '\\$' ) , $ str ) ; } else { $ str = \ str_replace ( array ( '\\' , '"' , '$' ) , array ( '\\\\' , '\\"' , '\\$' ) , $ str ) ; } return '\unserialize("' . $ str . '")' ; } }
docstring: Returns the PHP code, defining the current base value.
  
  @return string
docstring_tokens: Returns the PHP code defining the current base value .