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

Error::setCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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
}