public function verifyHash(array $params)
    {
        if (empty($params['HASH'])) {
            return false;
        }

        $hash = $params['HASH'];
        unset($params['HASH']);

        return $hash === $this->calculateHash($params);
    }
public function verifyHash(array $params)
    {
        if (empty($params['HASH'])) {
            return false;
        }

        $hash = $params['HASH'];
        unset($params['HASH']);

        return $hash === $this->calculateHash($params);
    }
public function verifyHash ( array $ params ) { if ( empty ( $ params [ 'HASH' ] ) ) { return false ; } $ hash = $ params [ 'HASH' ] ; unset ( $ params [ 'HASH' ] ) ; return $ hash === $ this -> calculateHash ( $ params ) ; }
Verify if the hash of the given parameter is correct

@param array $params

@return bool
Verify if the hash of the given parameter is correct