public function isValid($key)
    {
        if (! isset ($this['sso'], $this['sig'])) {
            return false;
        }

        return $this['sig'] === Secret::create($key)->sign($this['sso']);
    }
public function isValid($key)
    {
        if (! isset ($this['sso'], $this['sig'])) {
            return false;
        }

        return $this['sig'] === Secret::create($key)->sign($this['sso']);
    }
public function isValid ( $ key ) { if ( ! isset ( $ this [ 'sso' ] , $ this [ 'sig' ] ) ) { return false ; } return $ this [ 'sig' ] === Secret :: create ( $ key ) -> sign ( $ this [ 'sso' ] ) ; }
Checks the validity of this QueryString's against a secret key.

@param string|Secret $key
@return bool
Checks the validity of this QueryString s against a secret key .