src/Alg/Randomizer.php
public function configure( $useDigits, $useSmalls, $useLarges, $useSigns, $strength ){
		if( !( $useDigits || $useSmalls || $useLarges || $useSigns ) )
			throw InvalidArgumentException( 'Atleast one type of characters must be enabled' );
		$this->useDigits	= $useDigits;
		$this->useSmalls	= $useSmalls;
		$this->useLarges	= $useLarges;
		$this->useSigns		= $useSigns;
		$this->strength		= $strength;
	}
public function configure( $useDigits, $useSmalls, $useLarges, $useSigns, $strength ){
		if( !( $useDigits || $useSmalls || $useLarges || $useSigns ) )
			throw InvalidArgumentException( 'Atleast one type of characters must be enabled' );
		$this->useDigits	= $useDigits;
		$this->useSmalls	= $useSmalls;
		$this->useLarges	= $useLarges;
		$this->useSigns		= $useSigns;
		$this->strength		= $strength;
	}
public function configure ( $ useDigits , $ useSmalls , $ useLarges , $ useSigns , $ strength ) { if ( ! ( $ useDigits || $ useSmalls || $ useLarges || $ useSigns ) ) throw InvalidArgumentException ( 'Atleast one type of characters must be enabled' ) ; $ this -> useDigits = $ useDigits ; $ this -> useSmalls = $ useSmalls ; $ this -> useLarges = $ useLarges ; $ this -> useSigns = $ useSigns ; $ this -> strength = $ strength ; }
Defines characters to be used for string generation.
@access		public
@param		boolean		$useDigits		Flag: use Digits
@param		boolean		$useSmalls		Flag: use small Letters
@param		boolean		$useLarges		Flag: use large Letters
@param		boolean		$useSigns		Flag: use Signs
@param		integer		$strength		Strength randomized String should have at least (-100 <= x <= 100)
@return		void
Defines characters to be used for string generation .