Passed
Push — master ( 5319ee...e6b641 )
by Dani
02:13
created

ApiException::getResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
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