original_string: public function getGenerator($name)
      {
          if ($this->hasGenerator($name) === false) {
              throw new \RuntimeException(sprintf('Generator not found: "%s".', $name));
          }
  
          return $this->generators[$name];
      }
code: public function getGenerator($name)
      {
          if ($this->hasGenerator($name) === false) {
              throw new \RuntimeException(sprintf('Generator not found: "%s".', $name));
          }
  
          return $this->generators[$name];
      }
code_tokens: public function getGenerator ( $ name ) { if ( $ this -> hasGenerator ( $ name ) === false ) { throw new \ RuntimeException ( sprintf ( 'Generator not found: "%s".' , $ name ) ) ; } return $ this -> generators [ $ name ] ; }
docstring: Gets a generator.
  
  @param string $name The generator name
  
  @return \Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface
  
  @throws RuntimeException If the generator is not defined
docstring_tokens: Gets a generator .