1 | <?php |
||
18 | class GuzzleClient extends BaseGuzzleClient |
||
19 | { |
||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $responseClasses = []; |
||
24 | |||
25 | /** |
||
26 | * @var ClientInterface |
||
27 | */ |
||
28 | protected $client; |
||
29 | |||
30 | /** |
||
31 | * @var SerializerInterface|\JMS\Serializer\SerializerInterface |
||
32 | */ |
||
33 | protected $serializer; |
||
34 | |||
35 | /** |
||
36 | * @param ClientInterface $client |
||
37 | * @param DescriptionInterface $description |
||
38 | * @param array $responseClasses |
||
39 | * @param SerializerInterface|\JMS\Serializer\SerializerInterface $serializer |
||
40 | * @param array $config |
||
41 | */ |
||
42 | public function __construct( |
||
62 | |||
63 | protected function getResponseClass(string $name): ?string |
||
67 | |||
68 | /** |
||
69 | * @param ResponseInterface $response |
||
70 | * @param RequestInterface $request |
||
71 | * @param CommandInterface $command |
||
72 | * |
||
73 | * @return ResponseInterface|object|array |
||
74 | */ |
||
75 | public function transformResponse(ResponseInterface $response, RequestInterface $request, CommandInterface $command) |
||
93 | } |
||
94 |