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.');
	}
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.');
	}
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.' ) ; }
Create a generator instance from the specified type.

@param string $type Generator type.
@return Keygen\Generator

@throws \InvalidArgumentException
Create a generator instance from the specified type .