1 | <?php |
||
29 | class RequestFactory |
||
30 | { |
||
31 | /** |
||
32 | * |
||
33 | * @param RequestInterface $request |
||
34 | * @param array $options |
||
35 | * @param HttpClient $httpClient |
||
36 | * @param LoopInterface $loop |
||
37 | * @return \React\Promise\Promise |
||
38 | */ |
||
39 | public function create(RequestInterface $request, array $options, HttpClient $httpClient, LoopInterface $loop) |
||
48 | |||
49 | /** |
||
50 | * @param array $options |
||
51 | * @param HttpClient $httpClient |
||
52 | * @param LoopInterface $loop |
||
53 | * @return Sender |
||
54 | */ |
||
55 | 2 | protected function createSender(array $options, HttpClient $httpClient, LoopInterface $loop) |
|
66 | |||
67 | /** |
||
68 | * @param array $options |
||
69 | * @return array |
||
70 | */ |
||
71 | 2 | protected function convertOptions(array $options) |
|
75 | |||
76 | /** |
||
77 | * @param ConnectorInterface $connector |
||
78 | * @return mixed|null |
||
79 | */ |
||
80 | 1 | protected function extractResolver(ConnectorInterface $connector) |
|
88 | |||
89 | /** |
||
90 | * @param object $object |
||
91 | * @param string $desiredProperty |
||
92 | * @return mixed |
||
93 | */ |
||
94 | 2 | protected function getProperty($object, $desiredProperty) |
|
101 | } |
||
102 |