original_string: protected function getGroupContents(): array
      {
          $contents = [];
  
          foreach ($this->children() as $key => $child) {
  
              if (is_string($child)) {
                  $contents[] = [ 'key' => $child, 'type' => 'field' ];
                  continue;
              }
  
              $contents[] = [ 'key' => $key, 'type' => $child->type() ];
          }
  
          return $contents;
      }
code: protected function getGroupContents(): array
      {
          $contents = [];
  
          foreach ($this->children() as $key => $child) {
  
              if (is_string($child)) {
                  $contents[] = [ 'key' => $child, 'type' => 'field' ];
                  continue;
              }
  
              $contents[] = [ 'key' => $key, 'type' => $child->type() ];
          }
  
          return $contents;
      }
code_tokens: protected function getGroupContents ( ) : array { $ contents = [ ] ; foreach ( $ this -> children ( ) as $ key => $ child ) { if ( is_string ( $ child ) ) { $ contents [ ] = [ 'key' => $ child , 'type' => 'field' ] ; continue ; } $ contents [ ] = [ 'key' => $ key , 'type' => $ child -> type ( ) ] ; } return $ contents ; }
docstring: Returns the groups contents with type information.
  
  @return array    list of arrays with key, type child data
docstring_tokens: Returns the groups contents with type information .