| 1 | <?php |
||
| 7 | class HttpClient implements HttpClientInterface |
||
| 8 | { |
||
| 9 | protected $guzzle; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Create an instance of HttpClient. |
||
| 13 | */ |
||
| 14 | 5 | public function __construct(Guzzle $guzzle = null) |
|
| 18 | |||
| 19 | /** |
||
| 20 | * Get Guzzle client instance. |
||
| 21 | * |
||
| 22 | * @return \GuzzleHttp\Client |
||
| 23 | */ |
||
| 24 | 1 | public function getGuzzle() |
|
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritDoc} |
||
| 31 | */ |
||
| 32 | 2 | public function request($method, $uri, array $options = []) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritDoc} |
||
| 39 | */ |
||
| 40 | 1 | public function post($uri, array $options = []) |
|
| 44 | } |
||
| 45 |