ErrorResponse   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 100
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 100
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getErrorCode() 0 4 1
A setErrorCode() 0 6 1
A getErrorId() 0 4 1
A setErrorId() 0 6 1
A getMessage() 0 4 1
A setMessage() 0 6 1
A getHttpStatusCode() 0 4 1
A setHttpStatusCode() 0 6 1
1
<?php
2
3
namespace CultureKings\Afterpay\Model;
4
5
/**
6
 * Class ErrorResponse
7
 * @package CultureKings\Afterpay\Model
8
 */
9
class ErrorResponse
10
{
11
12
    /**
13
     * @var string
14
     */
15
    protected $errorCode;
16
    /**
17
     * @var string
18
     */
19
    protected $errorId;
20
    /**
21
     * @var string
22
     */
23
    protected $message;
24
    /**
25
     * @var string
26
     */
27
    protected $httpStatusCode;
28
29
    /**
30
     * @return string
31
     */
32
    public function getErrorCode()
33
    {
34
        return $this->errorCode;
35
    }
36
37
    /**
38
     * @param string $errorCode
39
     *
40
     * @return $this
41
     */
42
    public function setErrorCode($errorCode)
43
    {
44
        $this->errorCode = $errorCode;
45
46
        return $this;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getErrorId()
53
    {
54
        return $this->errorId;
55
    }
56
57
    /**
58
     * @param string $errorId
59
     *
60
     * @return $this
61
     */
62
    public function setErrorId($errorId)
63
    {
64
        $this->errorId = $errorId;
65
66
        return $this;
67
    }
68
69
    /**
70
     * @return string
71
     */
72
    public function getMessage()
73
    {
74
        return $this->message;
75
    }
76
77
    /**
78
     * @param string $message
79
     *
80
     * @return $this
81
     */
82
    public function setMessage($message)
83
    {
84
        $this->message = $message;
85
86
        return $this;
87
    }
88
89
    /**
90
     * @return string
91
     */
92
    public function getHttpStatusCode()
93
    {
94
        return $this->httpStatusCode;
95
    }
96
97
    /**
98
     * @param string $httpStatusCode
99
     *
100
     * @return $this
101
     */
102
    public function setHttpStatusCode($httpStatusCode)
103
    {
104
        $this->httpStatusCode = $httpStatusCode;
105
106
        return $this;
107
    }
108
}
109