original_string: protected function nodeToString(string $indent = ''): string
      {
          $str = $indent . "--{$this->getName()}--\n";
  
          foreach ($this->getChildren() as $child)
          {
              $str .= $child->nodeToString($indent . '  ');
          }
  
          return $str;
      }
code: protected function nodeToString(string $indent = ''): string
      {
          $str = $indent . "--{$this->getName()}--\n";
  
          foreach ($this->getChildren() as $child)
          {
              $str .= $child->nodeToString($indent . '  ');
          }
  
          return $str;
      }
code_tokens: protected function nodeToString ( string $ indent = '' ) : string { $ str = $ indent . "--{$this->getName()}--\n" ; foreach ( $ this -> getChildren ( ) as $ child ) { $ str .= $ child -> nodeToString ( $ indent . '  ' ) ; } return $ str ; }
docstring: Transforms the instance and its children into a string representation.
  
  @param string $indent
  
  @return string
docstring_tokens: Transforms the instance and its children into a string representation .