File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 26
26
class Client implements HttpClient, HttpAsyncClient
27
27
{
28
28
use HttpAsyncClientEmulator;
29
- use VersionBridgeClient;
30
29
31
30
/**
32
31
* @var ResponseFactory|ResponseFactoryInterface
@@ -78,9 +77,15 @@ public function __construct($responseFactory = null)
78
77
}
79
78
80
79
/**
81
- * {@inheritdoc}
80
+ * This will in order:
81
+ *
82
+ * - Throw the next exception in the list and advance
83
+ * - Return the next response in the list and advance
84
+ * - Throw the default exception if set (forever)
85
+ * - Return the default response if set (forever)
86
+ * - Create a new empty response with the response factory
82
87
*/
83
- public function doSendRequest (RequestInterface $ request )
88
+ public function sendRequest (RequestInterface $ request ): ResponseInterface
84
89
{
85
90
$ this ->requests [] = $ request ;
86
91
You can’t perform that action at this time.
0 commit comments