DaftravelException   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
eloc 8
c 1
b 0
f 1
dl 0
loc 20
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getResponse() 0 3 1
A __construct() 0 5 1
A getStatusCode() 0 3 1
1
<?php
2
3
namespace UsamamuneerChaudhary\Daftravel\Exceptions;
4
5
use Exception;
6
7
class DaftravelException extends Exception
8
{
9
    protected mixed $response;
10
    protected mixed $statusCode;
11
12
    public function __construct($message = '', $code = 0, $previous = null, $response = null, $statusCode = null)
13
    {
14
        parent::__construct($message, $code, $previous);
15
        $this->response = $response;
16
        $this->statusCode = $statusCode;
17
    }
18
19
    public function getResponse()
20
    {
21
        return $this->response;
22
    }
23
24
    public function getStatusCode()
25
    {
26
        return $this->statusCode;
27
    }
28
}
29