original_string: public function buildGetRequestObject(string $url, array $data = null): Request
      {
          $requestOptions = [
              RequestOptions::QUERY => $data
          ];
          $options = $this->buildRequest(self::METHOD_GET, $url, $requestOptions);
          $headers = isset($options[self::OPTION_OPTIONS][RequestOptions::HEADERS]) ? $options[self::OPTION_OPTIONS][RequestOptions::HEADERS] : [];
          $body = isset($options[self::OPTION_OPTIONS][RequestOptions::BODY]) ? $options[self::OPTION_OPTIONS][RequestOptions::BODY] : null;
          $version = isset($options[self::OPTION_OPTIONS][RequestOptions::VERSION]) ? $options[self::OPTION_OPTIONS][RequestOptions::VERSION] : '1.1';
          return new Request($options[self::OPTION_METHOD], $options[self::OPTION_URL], $headers, $body, $version);
      }
code: public function buildGetRequestObject(string $url, array $data = null): Request
      {
          $requestOptions = [
              RequestOptions::QUERY => $data
          ];
          $options = $this->buildRequest(self::METHOD_GET, $url, $requestOptions);
          $headers = isset($options[self::OPTION_OPTIONS][RequestOptions::HEADERS]) ? $options[self::OPTION_OPTIONS][RequestOptions::HEADERS] : [];
          $body = isset($options[self::OPTION_OPTIONS][RequestOptions::BODY]) ? $options[self::OPTION_OPTIONS][RequestOptions::BODY] : null;
          $version = isset($options[self::OPTION_OPTIONS][RequestOptions::VERSION]) ? $options[self::OPTION_OPTIONS][RequestOptions::VERSION] : '1.1';
          return new Request($options[self::OPTION_METHOD], $options[self::OPTION_URL], $headers, $body, $version);
      }
code_tokens: public function buildGetRequestObject ( string $ url , array $ data = null ) : Request { $ requestOptions = [ RequestOptions :: QUERY => $ data ] ; $ options = $ this -> buildRequest ( self :: METHOD_GET , $ url , $ requestOptions ) ; $ headers = isset ( $ options [ self :: OPTION_OPTIONS ] [ RequestOptions :: HEADERS ] ) ? $ options [ self :: OPTION_OPTIONS ] [ RequestOptions :: HEADERS ] : [ ] ; $ body = isset ( $ options [ self :: OPTION_OPTIONS ] [ RequestOptions :: BODY ] ) ? $ options [ self :: OPTION_OPTIONS ] [ RequestOptions :: BODY ] : null ; $ version = isset ( $ options [ self :: OPTION_OPTIONS ] [ RequestOptions :: VERSION ] ) ? $ options [ self :: OPTION_OPTIONS ] [ RequestOptions :: VERSION ] : '1.1' ; return new Request ( $ options [ self :: OPTION_METHOD ] , $ options [ self :: OPTION_URL ] , $ headers , $ body , $ version ) ; }
docstring: Builds a request object for async requests.
  @param $url string
  @param array|null $data
  @return Request
docstring_tokens: Builds a request object for async requests .