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

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

        $this->convertHashToArrayOfBoolean();

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

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

        $this->convertHashToArrayOfBoolean();

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

@param string $string

@throws \Exception

@return $this
Generate a hash from the original string .