original_string: public function toArray()
      {
          $array = [
              'name'      => $this->getName(),
              'arguments' => $this->getArguments(),
              'children'  => array()
          ];
  
          foreach ($this->children as $child) {
              $array['children'][] = $child->toArray();
          }
          return $array;
      }
code: public function toArray()
      {
          $array = [
              'name'      => $this->getName(),
              'arguments' => $this->getArguments(),
              'children'  => array()
          ];
  
          foreach ($this->children as $child) {
              $array['children'][] = $child->toArray();
          }
          return $array;
      }
code_tokens: public function toArray ( ) { $ array = [ 'name' => $ this -> getName ( ) , 'arguments' => $ this -> getArguments ( ) , 'children' => array ( ) ] ; foreach ( $ this -> children as $ child ) { $ array [ 'children' ] [ ] = $ child -> toArray ( ) ; } return $ array ; }
docstring: Get the array representation of the Token
  
  @return array
docstring_tokens: Get the array representation of the Token