ApiException   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 8
c 2
b 0
f 0
dl 0
loc 20
ccs 9
cts 9
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequestObject() 0 3 1
A getResponseObject() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
namespace Yabacon\Paystack\Exception;
4
5
class ApiException extends PaystackException
6
{
7
    private $responseObject;
8
    private $requestObject;
9
10 6
    public function __construct($message, $responseObject, $requestObject)
11
    {
12 6
        parent::__construct($message);
13 6
        $this->responseObject = $responseObject;
14 6
        $this->requestObject = $requestObject;
15 6
    }
16
17 2
    public function getResponseObject()
18
    {
19 2
        return $this->responseObject;
20
    }
21
22 1
    public function getRequestObject()
23
    {
24 1
        return $this->requestObject;
25
    }
26
}
27