1 | <?php |
||
17 | class HttpHistory implements Journal, IteratorAggregate |
||
18 | { |
||
19 | /** @var MessageInterface[][] Array of array of tuples of RequestInterface and ?ResponseInterface */ |
||
20 | private $tuples = []; |
||
21 | |||
22 | public function start() |
||
26 | |||
27 | /** {@inheritDoc} */ |
||
28 | public function addSuccess(RequestInterface $request, ResponseInterface $response) |
||
37 | |||
38 | /** {@inheritDoc} */ |
||
39 | public function addFailure(RequestInterface $request, Exception $exception) |
||
54 | |||
55 | public function getLastResponse(): ?ResponseInterface |
||
68 | |||
69 | public function getIterator(): Iterator |
||
73 | |||
74 | public function reset(): void |
||
78 | } |
||
79 |