Error   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 63
ccs 0
cts 24
cp 0
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getError() 0 4 1
A setError() 0 4 1
A getStatus() 0 4 1
A setStatus() 0 4 1
A getMessage() 0 4 1
A setMessage() 0 4 1
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
}