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

UnknownErrorResponseException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getResponse() 0 4 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