Error::getError()   A
last analyzed

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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace Redbox\Twitch;
3
4
class Error {
5
    /**
6
     * @var string
7
     */
8
    protected $error;
9
    /**
10
     * @var int
11
     */
12
    protected $status;
13
    /**
14
     * @var string
15
     */
16
    protected $message;
17
18
    /**
19
     * @return string
20
     */
21
    public function getError()
22
    {
23
        return $this->error;
24
    }
25
26
    /**
27
     * @param string $error
28
     */
29
    public function setError($error)
30
    {
31
        $this->error = $error;
32
    }
33
34
    /**
35
     * @return int
36
     */
37
    public function getStatus()
38
    {
39
        return $this->status;
40
    }
41
42
    /**
43
     * @param int $status
44
     */
45
    public function setStatus($status)
46
    {
47
        $this->status = $status;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getMessage()
54
    {
55
        return $this->message;
56
    }
57
58
    /**
59
     * @param string $message
60
     */
61
    public function setMessage($message)
62
    {
63
        $this->message = $message;
64
    }
65
66
}