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

UnknownErrorResponseException::getResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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