Exception::getStatusCode()   A
last analyzed

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
/**
8
 * Class Exception.
9
 */
10
class Exception extends BaseException
11
{
12
    /**
13
     * The suggested HTTP response code.
14
     *
15
     * @var int
16
     */
17
    public $responseCode;
18
19
    /**
20
     * The suggested status code.
21
     *
22
     * @var int
23
     */
24
    public $statusCode;
25
26
    /**
27
     * The suggested status message.
28
     *
29
     * @var string
30
     */
31
    public $statusMessage;
32
33
    /**
34
     * @return int
35
     */
36
    public function getResponseCode()
37
    {
38
        return $this->responseCode;
39
    }
40
41
    /**
42
     * @return int
43
     */
44
    public function getStatusCode()
45
    {
46
        return $this->statusCode;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getStatusMessage()
53
    {
54
        return $this->statusMessage;
55
    }
56
}
57