| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | interface Journal |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Record a successful call. |
||
| 22 | * |
||
| 23 | * @param RequestInterface $request Request use to make the call |
||
| 24 | * @param ResponseInterface $response Response returned by the call |
||
| 25 | */ |
||
| 26 | public function addSuccess(RequestInterface $request, ResponseInterface $response); |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Record a failed call. |
||
| 30 | * |
||
| 31 | * @param RequestInterface $request Request use to make the call |
||
| 32 | * @param Exception $exception Exception returned by the call |
||
| 33 | */ |
||
| 34 | public function addFailure(RequestInterface $request, Exception $exception); |
||
| 35 | } |
||
| 36 |
If you suppress an error, we recommend checking for the error condition explicitly: