Completed
Push — master ( c495bc...582eeb )
by Massimiliano
02:32
created

UnknownErrorResponseException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Fazland\SkebbyRestClient\Exception;
4
5
/**
6
 * @author Massimiliano Braglia <[email protected]>
7
 */
8
class UnknownErrorResponseException extends Exception
9
{
10
    /**
11
     * @var string
12
     */
13
    private $response;
14
15
    /**
16
     * UnknownErrorResponseException constructor.
17
     * @param string $message
18
     * @param string $response
19
     */
20 1
    public function __construct($message = '', $response = null)
21
    {
22 1
        $this->response = $response;
23
24 1
        parent::__construct($message);
25 1
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getResponse()
31
    {
32
        return $this->response;
33
    }
34
}
35