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

Exception::getStatusCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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