Completed
Pull Request — master (#3)
by Mads
04:19
created

Exception   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 45
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getStatusMessage() 0 3 1
A getStatusCode() 0 3 1
A getResponseCode() 0 3 1
1
<?php 
2
3
namespace Napp\Core\Api\Exceptions\Exceptions;
4
5
use Exception as BaseException;
6
7
class Exception extends BaseException
8
{
9
    /**
10
     * The suggested HTTP response code.
11
     *
12
     * @var int
13
     */
14
    public $responseCode;
15
16
    /**
17
     * The suggested status code.
18
     *
19
     * @var int
20
     */
21
    public $statusCode;
22
23
    /**
24
     * The suggested status message.
25
     *
26
     * @var string
27
     */
28
    public $statusMessage;
29
30
    /**
31
     * @return int
32
     */
33
    public function getResponseCode()
34
    {
35
        return $this->responseCode;
36
    }
37
38
    /**
39
     * @return int
40
     */
41
    public function getStatusCode()
42
    {
43
        return $this->statusCode;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getStatusMessage()
50
    {
51
        return $this->statusMessage;
52
    }
53
}
54