Completed
Push — master ( 43972c...0ee543 )
by Ibrahim
03:36
created

ApiException   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 22
ccs 9
cts 9
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getResponseObject() 0 4 1
A getRequestObject() 0 4 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