Ejemplo n.º 1
0
 /**
  * Uses the Query to make a call to the client
  *
  * @return \Psr\Http\Message\ResponseInterface
  */
 public function getClientResponse()
 {
     // Create a local copy of the client object
     $client = $this->client;
     // GET or POST request
     $verb = strtolower($this->query->getVerb());
     // The URL string
     $url = $this->query->getUrl();
     // HTTP method options
     $options = $this->query->getHttpMethodOptions();
     // Get the response
     return $client->{$verb}($url, $options);
 }