| 1 | <?php |
||
| 9 | class Client |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ClientInterface |
||
| 13 | */ |
||
| 14 | protected $handler; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param ClientInterface $handler |
||
| 18 | */ |
||
| 19 | public function __construct(ClientInterface $handler) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $path |
||
| 26 | * @param array $options |
||
| 27 | * |
||
| 28 | * @return Response |
||
| 29 | */ |
||
| 30 | public function get($path, array $options = []) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $path |
||
| 37 | * @param array $options |
||
| 38 | * |
||
| 39 | * @return Response |
||
| 40 | */ |
||
| 41 | public function put($path, array $options = []) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param string $path |
||
| 48 | * @param array $options |
||
| 49 | * |
||
| 50 | * @return Response |
||
| 51 | */ |
||
| 52 | public function delete($path, array $options = []) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $path |
||
| 59 | * @param array $options |
||
| 60 | * |
||
| 61 | * @return Response |
||
| 62 | */ |
||
| 63 | public function post($path, array $options = []) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param string $method |
||
| 70 | * @param string $path |
||
| 71 | * @param array $options |
||
| 72 | * |
||
| 73 | * @return array |
||
| 74 | */ |
||
| 75 | public function sendRequest($method, $path, array $options = []) |
||
| 85 | } |
||
| 86 |