This repository was archived by the owner on Jan 16, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
class BatchClient implements HttpClient
18
18
{
19
+ /**
20
+ * @var HttpClient
21
+ */
19
22
private $ client ;
20
23
24
+ /**
25
+ * @param HttpClient $client
26
+ */
21
27
public function __construct (HttpClient $ client )
22
28
{
23
29
$ this ->client = $ client ;
@@ -32,16 +38,16 @@ public function sendRequest(RequestInterface $request)
32
38
}
33
39
34
40
/**
35
- * Send several requests.
36
- *
41
+ * Send several requests.
42
+ *
37
43
* You may not assume that the requests are executed in a particular order. If the order matters
38
44
* for your application, use sendRequest sequentially.
39
- *
45
+ *
40
46
* @param RequestInterface[] The requests to send
41
- *
47
+ *
42
48
* @return BatchResult Containing one result per request.
43
- *
44
- * @throws BatchException If one or more requests fails. The exception gives access to the
49
+ *
50
+ * @throws BatchException If one or more requests fails. The exception gives access to the
45
51
* BatchResult with a map of request to result for success, request to
46
52
* exception for failures.
47
53
*/
You can’t perform that action at this time.
0 commit comments