1 | <?php |
||
17 | class RequestManager implements RequestManagerInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var \Http\Client\HttpClient |
||
21 | */ |
||
22 | private $httpClient; |
||
23 | |||
24 | /** |
||
25 | * @var \Http\Message\MessageFactory |
||
26 | */ |
||
27 | private $messageFactory; |
||
28 | |||
29 | /** |
||
30 | * @var \Psr\Http\Message\RequestInterface |
||
31 | */ |
||
32 | private $lastRequest; |
||
33 | |||
34 | |||
35 | /** |
||
36 | * @var \Psr\Http\Message\ResponseInterface |
||
37 | */ |
||
38 | private $lastResponse; |
||
39 | |||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function getLastRequest() { |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function getLastResponse() { |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function sendRequest($method, $uri, array $headers = [], $body = null, $protocolVersion = '1.1') |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function setHttpClient(HttpClient $httpClient) |
||
82 | |||
83 | /** |
||
84 | * @return HttpClient |
||
85 | */ |
||
86 | protected function getHttpClient() |
||
94 | |||
95 | /** |
||
96 | * @param MessageFactory $messageFactory |
||
97 | * |
||
98 | * @return RequestManager |
||
99 | */ |
||
100 | public function setMessageFactory(MessageFactory $messageFactory) |
||
106 | |||
107 | /** |
||
108 | * @return \Http\Message\MessageFactory |
||
109 | */ |
||
110 | private function getMessageFactory() |
||
118 | } |
||
119 |