Completed
Push — master ( d8721a...a291fe )
by Giancarlos
02:45
created

Error   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

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

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 2
    public function setCode($code)
40
    {
41 2
        $this->code = $code;
42 2
        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 2
    public function setMessage($message)
58
    {
59 2
        $this->message = $message;
60 2
        return $this;
61
    }
62
}