public static function create($query, $signature, $requestTimestamp, $body)
    {
        if (is_string($query)) {
            $queryParameters = array();
            parse_str($query, $queryParameters);
        } else {
            $queryParameters = $query;
        }

        $signedRequest = new SignedRequest();
        $signedRequest->loadFromArray(compact('body', 'queryParameters', 'requestTimestamp', 'signature'));

        return $signedRequest;
    }
public static function create($query, $signature, $requestTimestamp, $body)
    {
        if (is_string($query)) {
            $queryParameters = array();
            parse_str($query, $queryParameters);
        } else {
            $queryParameters = $query;
        }

        $signedRequest = new SignedRequest();
        $signedRequest->loadFromArray(compact('body', 'queryParameters', 'requestTimestamp', 'signature'));

        return $signedRequest;
    }
public static function create ( $ query , $ signature , $ requestTimestamp , $ body ) { if ( is_string ( $ query ) ) { $ queryParameters = array ( ) ; parse_str ( $ query , $ queryParameters ) ; } else { $ queryParameters = $ query ; } $ signedRequest = new SignedRequest ( ) ; $ signedRequest -> loadFromArray ( compact ( 'body' , 'queryParameters' , 'requestTimestamp' , 'signature' ) ) ; return $ signedRequest ; }
Create a SignedRequest from the provided data.

@param string|array $query The query string from the request
@param string $signature The base64-encoded signature for the request
@param int $requestTimestamp The UNIX timestamp for the time the request was made
@param string $body The request body
@return SignedRequest
@throws ValidationException when a required parameter is missing.
Create a SignedRequest from the provided data .