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

Exception::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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