Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class History implements Journal |
||
16 | { |
||
17 | /** |
||
18 | * @var ResponseInterface |
||
19 | */ |
||
20 | private $lastResponse; |
||
21 | |||
22 | /** |
||
23 | * @return ResponseInterface|null |
||
24 | */ |
||
25 | public function getLastResponse() |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function addSuccess(RequestInterface $request, ResponseInterface $response) |
||
34 | { |
||
35 | $this->lastResponse = $response; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function addFailure(RequestInterface $request, ClientExceptionInterface $exception) |
||
43 | } |
||
44 | } |
||
45 |