public function setHash($hash)
    {
        if (!is_string($hash)) {
            throw new \InvalidArgumentException(
                'An invalid $hash was passed to Identicon. ' .
                'A binary string was expected.');
        }
        if (strlen($hash) < 6) {
            throw new \InvalidArgumentException(
                'An invalid $hash was passed to Identicon. ' . 
                'The hash was expected to contain at least 6 bytes.');
        }
        
        $this->hash = $hash;
        $this->value = null;
        $this->valueSet = false;
        return $this;
    }
public function setHash($hash)
    {
        if (!is_string($hash)) {
            throw new \InvalidArgumentException(
                'An invalid $hash was passed to Identicon. ' .
                'A binary string was expected.');
        }
        if (strlen($hash) < 6) {
            throw new \InvalidArgumentException(
                'An invalid $hash was passed to Identicon. ' . 
                'The hash was expected to contain at least 6 bytes.');
        }
        
        $this->hash = $hash;
        $this->value = null;
        $this->valueSet = false;
        return $this;
    }
public function setHash ( $ hash ) { if ( ! is_string ( $ hash ) ) { throw new \ InvalidArgumentException ( 'An invalid $hash was passed to Identicon. ' . 'A binary string was expected.' ) ; } if ( strlen ( $ hash ) < 6 ) { throw new \ InvalidArgumentException ( 'An invalid $hash was passed to Identicon. ' . 'The hash was expected to contain at least 6 bytes.' ) ; } $ this -> hash = $ hash ; $ this -> value = null ; $ this -> valueSet = false ; return $ this ; }
Sets a binary string containing the hash that is used as base for this
icon. The string should contain at least 6 bytes.

@param string $hash Binary string containing the hash.
Sets a binary string containing the hash that is used as base for this icon . The string should contain at least 6 bytes .