Response::setOrderId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace Paranoia;
3
4
class Response
5
{
6
    /** @var boolean */
7
    protected $isSuccess;
8
9
    /** @var string */
10
    protected $transactionType;
11
12
    /** @var string */
13
    protected $orderId;
14
15
    /** @var string */
16
    protected $transactionId;
17
18
    /** @var string */
19
    protected $authCode;
20
21
    /** @var integer */
22
    protected $responseCode;
23
24
    /** @var string */
25
    protected $responseMessage;
26
27
    /**
28
     * @return bool
29
     */
30
    public function isSuccess()
31
    {
32
        return $this->isSuccess;
33
    }
34
35
    /**
36
     * @param bool $isSuccess
37
     * @return Response
38
     */
39
    public function setIsSuccess($isSuccess)
40
    {
41
        $this->isSuccess = $isSuccess;
42
        return $this;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getTransactionType()
49
    {
50
        return $this->transactionType;
51
    }
52
53
    /**
54
     * @param string $transactionType
55
     * @return Response
56
     */
57
    public function setTransactionType($transactionType)
58
    {
59
        $this->transactionType = $transactionType;
60
        return $this;
61
    }
62
63
    /**
64
     * @return string
65
     */
66
    public function getOrderId()
67
    {
68
        return $this->orderId;
69
    }
70
71
    /**
72
     * @param string $orderId
73
     * @return Response
74
     */
75
    public function setOrderId($orderId)
76
    {
77
        $this->orderId = $orderId;
78
        return $this;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function getTransactionId()
85
    {
86
        return $this->transactionId;
87
    }
88
89
    /**
90
     * @param string $transactionId
91
     * @return Response
92
     */
93
    public function setTransactionId($transactionId)
94
    {
95
        $this->transactionId = $transactionId;
96
        return $this;
97
    }
98
99
    /**
100
     * @return string
101
     */
102
    public function getAuthCode()
103
    {
104
        return $this->authCode;
105
    }
106
107
    /**
108
     * @param string $authCode
109
     * @return Response
110
     */
111
    public function setAuthCode($authCode)
112
    {
113
        $this->authCode = $authCode;
114
        return $this;
115
    }
116
117
    /**
118
     * @return int
119
     */
120
    public function getResponseCode()
121
    {
122
        return $this->responseCode;
123
    }
124
125
    /**
126
     * @param int $responseCode
127
     * @return Response
128
     */
129
    public function setResponseCode($responseCode)
130
    {
131
        $this->responseCode = $responseCode;
132
        return $this;
133
    }
134
135
    /**
136
     * @return string
137
     */
138
    public function getResponseMessage()
139
    {
140
        return $this->responseMessage;
141
    }
142
143
    /**
144
     * @param string $responseMessage
145
     * @return Response
146
     */
147
    public function setResponseMessage($responseMessage)
148
    {
149
        $this->responseMessage = $responseMessage;
150
        return $this;
151
    }
152
}
153