public function setString($string)
	{
		if (null === $string)
		{
			throw new Exception('The string cannot be null.');
		}

		$this->string = $string;
		$this->hash   = md5($string);

		$this->convertHash();

		return $this;
	}
public function setString($string)
	{
		if (null === $string)
		{
			throw new Exception('The string cannot be null.');
		}

		$this->string = $string;
		$this->hash   = md5($string);

		$this->convertHash();

		return $this;
	}
public function setString ( $ string ) { if ( null === $ string ) { throw new Exception ( 'The string cannot be null.' ) ; } $ this -> string = $ string ; $ this -> hash = md5 ( $ string ) ; $ this -> convertHash ( ) ; return $ this ; }
Generate a hash fron the original string

@param   string  $string
@return  object
Generate a hash fron the original string