original_string: public function render(\DOMDocument $domDocument)
      {
          $stylesheetXml = $domDocument->createElement("stylesheet");
          if ($this->styles3d) {
              $stylesXml = $domDocument->createElement("frame3dstyles");
              $stylesheetXml->appendChild($stylesXml);
              foreach ($this->styles3d as $style3d) {
                  $style3dXml = $style3d->render($domDocument);
                  $stylesXml->appendChild($style3dXml);
              }
          }
          if ($this->mood) {
              $moodXml = $this->mood->render($domDocument);
              $stylesheetXml->appendChild($moodXml);
          }
          return $stylesheetXml;
      }
code: public function render(\DOMDocument $domDocument)
      {
          $stylesheetXml = $domDocument->createElement("stylesheet");
          if ($this->styles3d) {
              $stylesXml = $domDocument->createElement("frame3dstyles");
              $stylesheetXml->appendChild($stylesXml);
              foreach ($this->styles3d as $style3d) {
                  $style3dXml = $style3d->render($domDocument);
                  $stylesXml->appendChild($style3dXml);
              }
          }
          if ($this->mood) {
              $moodXml = $this->mood->render($domDocument);
              $stylesheetXml->appendChild($moodXml);
          }
          return $stylesheetXml;
      }
code_tokens: public function render ( \ DOMDocument $ domDocument ) { $ stylesheetXml = $ domDocument -> createElement ( "stylesheet" ) ; if ( $ this -> styles3d ) { $ stylesXml = $ domDocument -> createElement ( "frame3dstyles" ) ; $ stylesheetXml -> appendChild ( $ stylesXml ) ; foreach ( $ this -> styles3d as $ style3d ) { $ style3dXml = $ style3d -> render ( $ domDocument ) ; $ stylesXml -> appendChild ( $ style3dXml ) ; } } if ( $ this -> mood ) { $ moodXml = $ this -> mood -> render ( $ domDocument ) ; $ stylesheetXml -> appendChild ( $ moodXml ) ; } return $ stylesheetXml ; }
docstring: Render the Stylesheet
  
  @param \DOMDocument $domDocument DOMDocument for which the Stylesheet should be rendered
  @return \DOMElement
docstring_tokens: Render the Stylesheet