public function setHashString(string $string)
    {
        if (!empty(trim($string))) {
            $this->string = $string;
            $this->hash = md5($string);
            $this->convertHashToArrayOfBoolean();

            return $this;
        }
    }
public function setHashString(string $string)
    {
        if (!empty(trim($string))) {
            $this->string = $string;
            $this->hash = md5($string);
            $this->convertHashToArrayOfBoolean();

            return $this;
        }
    }
public function setHashString ( string $ string ) { if ( ! empty ( trim ( $ string ) ) ) { $ this -> string = $ string ; $ this -> hash = md5 ( $ string ) ; $ this -> convertHashToArrayOfBoolean ( ) ; return $ this ; } }
Set the string.

@param $string Text that should be hashed.

@since 3.0.0

@return mix
Set the string .