Code

< 40 %
40-60 %
> 60 %
1
<?php
2
3
namespace Postpay\Exceptions;
4
5
use Postpay\Http\Response;
6
7
abstract class ApiException extends PostpayException
8
{
9
    /**
10
     * @var Response The response that threw the exception.
11
     */
12
    protected $response;
13
14
    /**
15
     * @var array Decoded response.
16
     */
17
    protected $decodedBody;
18
19
    /**
20
     * Returns the response entity.
21
     *
22
     * @return Response
23
     */
24 1
    public function getResponse()
25
    {
26 1
        return $this->response;
27
    }
28
}
29