Completed
Push — master ( a41bca...d54f6c )
by Giancarlos
02:37
created

Error   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 48
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getCode() 0 4 1
A setCode() 0 5 1
A getMessage() 0 4 1
A setMessage() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 21/07/2017
6
 * Time: 23:14
7
 */
8
9
namespace Greenter\Model\Response;
10
11
/**
12
 * Class Error
13
 * @package Greenter\Model\Response
14
 */
15
class Error
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $code;
21
22
    /**
23
     * @var string
24
     */
25
    protected $message;
26
27
    /**
28
     * @return string
29
     */
30
    public function getCode()
31
    {
32
        return $this->code;
33
    }
34
35
    /**
36
     * @param string $code
37
     * @return Error
38
     */
39
    public function setCode($code)
40
    {
41
        $this->code = $code;
42
        return $this;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getMessage()
49
    {
50
        return $this->message;
51
    }
52
53
    /**
54
     * @param string $message
55
     * @return Error
56
     */
57
    public function setMessage($message)
58
    {
59
        $this->message = $message;
60
        return $this;
61
    }
62
}