Skip to content

Commit

Permalink
ApiClient - internal httpClient can now be retrieved with getHttpClie…
Browse files Browse the repository at this point in the history
…nt and overwritten with setHttpClient
  • Loading branch information
zulucrypto committed Sep 22, 2018
1 parent 7e11eca commit ccafdbb
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions src/Horizon/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@ class ApiClient
/**
* @var Client
*/
private $httpClient;
protected $httpClient;

/**
* @var string
*/
private $baseUrl;
protected $baseUrl;

/**
* @var boolean
*/
private $isTestnet;
protected $isTestnet;

/**
* @var string
*/
private $networkPassphrase;
protected $networkPassphrase;

/**
* @return ApiClient
Expand Down Expand Up @@ -539,4 +539,21 @@ public function setBaseUrl($baseUrl)
{
$this->baseUrl = $baseUrl;
}

/**
* @return Client
*/
public function getHttpClient()
{
return $this->httpClient;
}

/**
* @param Client $httpClient
*/
public function setHttpClient($httpClient)
{
$this->httpClient = $httpClient;
}

}

0 comments on commit ccafdbb

Please sign in to comment.