| 1 | <?php |
||
| 9 | class Guzzle6 extends Guzzle |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Client |
||
| 13 | */ |
||
| 14 | private $client; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * {@InheritDoc} |
||
| 18 | */ |
||
| 19 | public function __construct($baseUri) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Init Guzzle6 client with base url. |
||
| 28 | */ |
||
| 29 | public function initClient() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return Client |
||
| 40 | */ |
||
| 41 | public function getClient() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param Client $client |
||
| 48 | * |
||
| 49 | * @return self |
||
| 50 | */ |
||
| 51 | public function setClient(Client $client) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@InheritDoc} |
||
| 60 | */ |
||
| 61 | public function send(Request $request) |
||
| 65 | } |
||
| 66 |