original_string: public static function create($type)
  	{
  		$generator = sprintf("Keygen\Generators\%sGenerator", ucfirst($type));
  
  		if (class_exists($generator)) {
  			$generator = new $generator;
  
  			if ($generator instanceof Generator) {
  				return $generator;
  			}
  		}
  
  		throw new InvalidArgumentException('Cannot create unknown generator type.');
  	}
code: public static function create($type)
  	{
  		$generator = sprintf("Keygen\Generators\%sGenerator", ucfirst($type));
  
  		if (class_exists($generator)) {
  			$generator = new $generator;
  
  			if ($generator instanceof Generator) {
  				return $generator;
  			}
  		}
  
  		throw new InvalidArgumentException('Cannot create unknown generator type.');
  	}
code_tokens: public static function create ( $ type ) { $ generator = sprintf ( "Keygen\Generators\%sGenerator" , ucfirst ( $ type ) ) ; if ( class_exists ( $ generator ) ) { $ generator = new $ generator ; if ( $ generator instanceof Generator ) { return $ generator ; } } throw new InvalidArgumentException ( 'Cannot create unknown generator type.' ) ; }
docstring: Create a generator instance from the specified type.
  
  @param string $type Generator type.
  @return Keygen\Generator
  
  @throws \InvalidArgumentException
docstring_tokens: Create a generator instance from the specified type .