Completed
Pull Request — master (#44)
by Chad
04:20
created

Exception   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getResponse() 0 4 1
1
<?php
2
3
namespace TraderInteractive\Api;
4
5
class Exception extends \Exception
6
{
7
    /**
8
     * @var Response
9
     */
10
    private $response;
11
12
    public function __construct(string $message, Response $response)
13
    {
14
        parent::__construct($message);
15
        $this->response = $response;
16
    }
17
18
    public function getResponse() : Response
19
    {
20
        return $this->response;
21
    }
22
}
23