| 1 | <?php |
||
| 15 | class GuzzleClient implements ClientInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var Client |
||
| 19 | */ |
||
| 20 | protected $client; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var RequestConfigurator |
||
| 24 | */ |
||
| 25 | protected $configurator; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var ResponseRepair |
||
| 29 | */ |
||
| 30 | protected $repair; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | protected $url; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param Client $client |
||
| 39 | * @param RequestConfigurator $configurator |
||
| 40 | * @param ResponseRepair $repair |
||
| 41 | * @param string $api_prefix |
||
| 42 | */ |
||
| 43 | 3 | public function __construct( |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @param int $timeout |
||
| 57 | * |
||
| 58 | * @return GuzzleClient |
||
| 59 | */ |
||
| 60 | 1 | public function setTimeout($timeout) |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @param string $proxy |
||
| 69 | * |
||
| 70 | * @return GuzzleClient |
||
| 71 | */ |
||
| 72 | 1 | public function setProxy($proxy) |
|
| 78 | |||
| 79 | /** |
||
| 80 | * @param string $request |
||
| 81 | * @param array $params |
||
| 82 | * |
||
| 83 | * @return string |
||
| 84 | */ |
||
| 85 | 1 | public function get($request, array $params = []) |
|
| 92 | } |
||
| 93 |