original_string: public function optgroup(Optgroup $optgroup)
      {
          $innerHtml = '';
          foreach ($optgroup->getOptions() as $option) {
              $innerHtml .= $this->render($option) . PHP_EOL;
          }
  
          $tag = new Tag('optgroup', $innerHtml);
          $tag->setAttribute('label', $optgroup->getLabel());
  
          return $this->parseTag($tag, $optgroup);
      }
code: public function optgroup(Optgroup $optgroup)
      {
          $innerHtml = '';
          foreach ($optgroup->getOptions() as $option) {
              $innerHtml .= $this->render($option) . PHP_EOL;
          }
  
          $tag = new Tag('optgroup', $innerHtml);
          $tag->setAttribute('label', $optgroup->getLabel());
  
          return $this->parseTag($tag, $optgroup);
      }
code_tokens: public function optgroup ( Optgroup $ optgroup ) { $ innerHtml = '' ; foreach ( $ optgroup -> getOptions ( ) as $ option ) { $ innerHtml .= $ this -> render ( $ option ) . PHP_EOL ; } $ tag = new Tag ( 'optgroup' , $ innerHtml ) ; $ tag -> setAttribute ( 'label' , $ optgroup -> getLabel ( ) ) ; return $ this -> parseTag ( $ tag , $ optgroup ) ; }
docstring: Render an Optgroup
  
  @param Optgroup $optgroup
  @return string
docstring_tokens: Render an Optgroup