ApiException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 22
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getResponse() 0 4 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