1 | <?php |
||
22 | class MultiRequestCreatedEvent extends AbstractEvent |
||
23 | { |
||
24 | /** |
||
25 | * @var InternalRequestInterface[] |
||
26 | */ |
||
27 | private $requests; |
||
28 | |||
29 | /** |
||
30 | * @var ResponseInterface[] |
||
31 | */ |
||
32 | private $responses = []; |
||
33 | |||
34 | /** |
||
35 | * @var HttpAdapterException[] |
||
36 | */ |
||
37 | private $exceptions = []; |
||
38 | |||
39 | /** |
||
40 | * @param HttpAdapterInterface $httpAdapter |
||
41 | * @param array $requests |
||
42 | */ |
||
43 | 306 | public function __construct(HttpAdapterInterface $httpAdapter, array $requests) |
|
49 | |||
50 | 306 | public function clearRequests() |
|
54 | |||
55 | /** |
||
56 | * @return bool |
||
57 | */ |
||
58 | 54 | public function hasRequests() |
|
62 | |||
63 | /** |
||
64 | * @return InternalRequestInterface[] |
||
65 | */ |
||
66 | 180 | public function getRequests() |
|
70 | |||
71 | /** |
||
72 | * @param InternalRequestInterface[] $requests |
||
73 | */ |
||
74 | 306 | public function setRequests(array $requests) |
|
79 | |||
80 | /** |
||
81 | * @param InternalRequestInterface[] $requests |
||
82 | */ |
||
83 | 306 | public function addRequests(array $requests) |
|
89 | |||
90 | /** |
||
91 | * @param InternalRequestInterface[] $requests |
||
92 | */ |
||
93 | 9 | public function removeRequests(array $requests) |
|
99 | |||
100 | /** |
||
101 | * @param InternalRequestInterface $request |
||
102 | * |
||
103 | * @return bool |
||
104 | */ |
||
105 | 45 | public function hasRequest(InternalRequestInterface $request) |
|
109 | |||
110 | /** |
||
111 | * @param InternalRequestInterface $request |
||
112 | */ |
||
113 | 306 | public function addRequest(InternalRequestInterface $request) |
|
117 | |||
118 | /** |
||
119 | * @param InternalRequestInterface $request |
||
120 | */ |
||
121 | 81 | public function removeRequest(InternalRequestInterface $request) |
|
126 | |||
127 | 36 | public function clearResponses() |
|
131 | |||
132 | /** |
||
133 | * @return bool |
||
134 | */ |
||
135 | 45 | public function hasResponses() |
|
139 | |||
140 | /** |
||
141 | * @return ResponseInterface[] |
||
142 | */ |
||
143 | 117 | public function getResponses() |
|
147 | |||
148 | /** |
||
149 | * @param ResponseInterface[] $responses |
||
150 | */ |
||
151 | 36 | public function setResponses(array $responses) |
|
156 | |||
157 | /** |
||
158 | * @param ResponseInterface[] $responses |
||
159 | */ |
||
160 | 36 | public function addResponses(array $responses) |
|
166 | |||
167 | /** |
||
168 | * @param ResponseInterface[] $responses |
||
169 | */ |
||
170 | 9 | public function removeResponses(array $responses) |
|
176 | |||
177 | /** |
||
178 | * @param ResponseInterface $response |
||
179 | * |
||
180 | * @return bool |
||
181 | */ |
||
182 | 36 | public function hasResponse(ResponseInterface $response) |
|
186 | |||
187 | /** |
||
188 | * @param ResponseInterface $response |
||
189 | */ |
||
190 | 63 | public function addResponse(ResponseInterface $response) |
|
194 | |||
195 | /** |
||
196 | * @param ResponseInterface $response |
||
197 | */ |
||
198 | 18 | public function removeResponse(ResponseInterface $response) |
|
203 | |||
204 | 36 | public function clearExceptions() |
|
208 | |||
209 | /** |
||
210 | * @return bool |
||
211 | */ |
||
212 | 45 | public function hasExceptions() |
|
216 | |||
217 | /** |
||
218 | * @return HttpAdapterException[] |
||
219 | */ |
||
220 | 117 | public function getExceptions() |
|
224 | |||
225 | /** |
||
226 | * @param HttpAdapterException[] $exceptions |
||
227 | */ |
||
228 | 36 | public function setExceptions(array $exceptions) |
|
233 | |||
234 | /** |
||
235 | * @param HttpAdapterException[] $exceptions |
||
236 | */ |
||
237 | 36 | public function addExceptions(array $exceptions) |
|
243 | |||
244 | /** |
||
245 | * @param HttpAdapterException[] $exceptions |
||
246 | */ |
||
247 | 9 | public function removeExceptions(array $exceptions) |
|
253 | |||
254 | /** |
||
255 | * @param HttpAdapterException $exception |
||
256 | * |
||
257 | * @return bool |
||
258 | */ |
||
259 | 36 | public function hasException(HttpAdapterException $exception) |
|
263 | |||
264 | /** |
||
265 | * @param HttpAdapterException $exception |
||
266 | */ |
||
267 | 63 | public function addException(HttpAdapterException $exception) |
|
271 | |||
272 | /** |
||
273 | * @param HttpAdapterException $exception |
||
274 | */ |
||
275 | 18 | public function removeException(HttpAdapterException $exception) |
|
280 | } |
||
281 |