public function isValid(ShaComposer $shaComposer)
    {
        if (function_exists('hash_equals')) {
            return hash_equals($shaComposer->compose($this->parameters), $this->shaSign);
        } else {
            return $shaComposer->compose($this->parameters) == $this->shaSign;
        }
    }
public function isValid(ShaComposer $shaComposer)
    {
        if (function_exists('hash_equals')) {
            return hash_equals($shaComposer->compose($this->parameters), $this->shaSign);
        } else {
            return $shaComposer->compose($this->parameters) == $this->shaSign;
        }
    }
public function isValid ( ShaComposer $ shaComposer ) { if ( function_exists ( 'hash_equals' ) ) { return hash_equals ( $ shaComposer -> compose ( $ this -> parameters ) , $ this -> shaSign ) ; } else { return $ shaComposer -> compose ( $ this -> parameters ) == $ this -> shaSign ; } }
Checks if the response is valid
@return bool
Checks if the response is valid