| 1 | <?php |
||
| 7 | abstract class AbstractRequestBuilder implements RequestBuilderInterface |
||
| 8 | { |
||
| 9 | private $client; |
||
| 10 | |||
| 11 | public function build($uri = null, array $queries = null, array $headers = null, array $postBody = null, $body = null, array $options = []) |
||
| 17 | |||
| 18 | public function setClient(ClientInterface $client = null) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Return a clone of guzzle client if available. |
||
| 25 | * |
||
| 26 | * This is useful to ensure executions isolation. |
||
| 27 | * |
||
| 28 | * @return ClientInterface|null |
||
| 29 | */ |
||
| 30 | public function getClient() |
||
| 31 | { |
||
| 32 | if ($this->client instanceof ClientInterface) { |
||
| 33 | return clone $this->client; |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | protected function formatQueryString(array $queries = null) |
||
| 45 | } |
||
| 46 |