protected function newGenerator($type, $length = null)
	{
		$generator = GeneratorFactory::create($type)->mutate($this)->length($length ?: $this->length);

		if (isset($this->prefix)) {
			$generator->prefix($this->prefix);
		}

		if (isset($this->suffix)) {
			$generator->suffix($this->suffix);
		}

		return $generator;
	}
protected function newGenerator($type, $length = null)
	{
		$generator = GeneratorFactory::create($type)->mutate($this)->length($length ?: $this->length);

		if (isset($this->prefix)) {
			$generator->prefix($this->prefix);
		}

		if (isset($this->suffix)) {
			$generator->suffix($this->suffix);
		}

		return $generator;
	}
protected function newGenerator ( $ type , $ length = null ) { $ generator = GeneratorFactory :: create ( $ type ) -> mutate ( $ this ) -> length ( $ length ? : $ this -> length ) ; if ( isset ( $ this -> prefix ) ) { $ generator -> prefix ( $ this -> prefix ) ; } if ( isset ( $ this -> suffix ) ) { $ generator -> suffix ( $ this -> suffix ) ; } return $ generator ; }
Creates a new generator instance of the given type.

@param string $type Generator type
@param mixed $length
@return Keygen\Generator

@throws \InvalidArgumentException
Creates a new generator instance of the given type .