CancelResponse::getCancellationNo()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 4
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5 View Code Duplication
class CancelResponse
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
6
{
7
8
    /**
9
     * @var int $CancellationNo
10
     */
11
    protected $CancellationNo = null;
12
13
    /**
14
     * @var Folios $FolioAmounts
15
     */
16
    protected $FolioAmounts = null;
17
18
    /**
19
     * @var int $SfolioPenalty
20
     */
21
    protected $SfolioPenalty = null;
22
23
    /**
24
     * @var float $AmountPenalty
25
     */
26
    protected $AmountPenalty = null;
27
28
    /**
29
     * @var int $ID_TrnCodePenalty
30
     */
31
    protected $ID_TrnCodePenalty = null;
32
33
    /**
34
     * @var int $LedgerType
35
     */
36
    protected $LedgerType = null;
37
38
    /**
39
     * @var int $ID_Account
40
     */
41
    protected $ID_Account = null;
42
43
    /**
44
     * @var int $AccountNo
45
     */
46
    protected $AccountNo = null;
47
48
    /**
49
     * @var int $ID_Dept
50
     */
51
    protected $ID_Dept = null;
52
53
    /**
54
     * @var boolean $MustRefundCard
55
     */
56
    protected $MustRefundCard = null;
57
58
    /**
59
     * @param int $CancellationNo
60
     * @param int $SfolioPenalty
61
     * @param float $AmountPenalty
62
     * @param int $ID_TrnCodePenalty
63
     * @param int $LedgerType
64
     * @param int $ID_Account
65
     * @param int $AccountNo
66
     * @param int $ID_Dept
67
     * @param boolean $MustRefundCard
68
     */
69
    public function __construct($CancellationNo, $SfolioPenalty, $AmountPenalty, $ID_TrnCodePenalty, $LedgerType, $ID_Account, $AccountNo, $ID_Dept, $MustRefundCard)
70
    {
71
        $this->CancellationNo = $CancellationNo;
72
        $this->SfolioPenalty = $SfolioPenalty;
73
        $this->AmountPenalty = $AmountPenalty;
74
        $this->ID_TrnCodePenalty = $ID_TrnCodePenalty;
75
        $this->LedgerType = $LedgerType;
76
        $this->ID_Account = $ID_Account;
77
        $this->AccountNo = $AccountNo;
78
        $this->ID_Dept = $ID_Dept;
79
        $this->MustRefundCard = $MustRefundCard;
80
    }
81
82
    /**
83
     * @return int
84
     */
85
    public function getCancellationNo()
86
    {
87
        return $this->CancellationNo;
88
    }
89
90
    /**
91
     * @param int $CancellationNo
92
     * @return \Gueststream\PMS\IQWare\API\CancelResponse
93
     */
94
    public function setCancellationNo($CancellationNo)
95
    {
96
        $this->CancellationNo = $CancellationNo;
97
        return $this;
98
    }
99
100
    /**
101
     * @return Folios
102
     */
103
    public function getFolioAmounts()
104
    {
105
        return $this->FolioAmounts;
106
    }
107
108
    /**
109
     * @param Folios $FolioAmounts
110
     * @return \Gueststream\PMS\IQWare\API\CancelResponse
111
     */
112
    public function setFolioAmounts($FolioAmounts)
113
    {
114
        $this->FolioAmounts = $FolioAmounts;
115
        return $this;
116
    }
117
118
    /**
119
     * @return int
120
     */
121
    public function getSfolioPenalty()
122
    {
123
        return $this->SfolioPenalty;
124
    }
125
126
    /**
127
     * @param int $SfolioPenalty
128
     * @return \Gueststream\PMS\IQWare\API\CancelResponse
129
     */
130
    public function setSfolioPenalty($SfolioPenalty)
131
    {
132
        $this->SfolioPenalty = $SfolioPenalty;
133
        return $this;
134
    }
135
136
    /**
137
     * @return float
138
     */
139
    public function getAmountPenalty()
140
    {
141
        return $this->AmountPenalty;
142
    }
143
144
    /**
145
     * @param float $AmountPenalty
146
     * @return \Gueststream\PMS\IQWare\API\CancelResponse
147
     */
148
    public function setAmountPenalty($AmountPenalty)
149
    {
150
        $this->AmountPenalty = $AmountPenalty;
151
        return $this;
152
    }
153
154
    /**
155
     * @return int
156
     */
157
    public function getID_TrnCodePenalty()
158
    {
159
        return $this->ID_TrnCodePenalty;
160
    }
161
162
    /**
163
     * @param int $ID_TrnCodePenalty
164
     * @return \Gueststream\PMS\IQWare\API\CancelResponse
165
     */
166
    public function setID_TrnCodePenalty($ID_TrnCodePenalty)
167
    {
168
        $this->ID_TrnCodePenalty = $ID_TrnCodePenalty;
169
        return $this;
170
    }
171
172
    /**
173
     * @return int
174
     */
175
    public function getLedgerType()
176
    {
177
        return $this->LedgerType;
178
    }
179
180
    /**
181
     * @param int $LedgerType
182
     * @return \Gueststream\PMS\IQWare\API\CancelResponse
183
     */
184
    public function setLedgerType($LedgerType)
185
    {
186
        $this->LedgerType = $LedgerType;
187
        return $this;
188
    }
189
190
    /**
191
     * @return int
192
     */
193
    public function getID_Account()
194
    {
195
        return $this->ID_Account;
196
    }
197
198
    /**
199
     * @param int $ID_Account
200
     * @return \Gueststream\PMS\IQWare\API\CancelResponse
201
     */
202
    public function setID_Account($ID_Account)
203
    {
204
        $this->ID_Account = $ID_Account;
205
        return $this;
206
    }
207
208
    /**
209
     * @return int
210
     */
211
    public function getAccountNo()
212
    {
213
        return $this->AccountNo;
214
    }
215
216
    /**
217
     * @param int $AccountNo
218
     * @return \Gueststream\PMS\IQWare\API\CancelResponse
219
     */
220
    public function setAccountNo($AccountNo)
221
    {
222
        $this->AccountNo = $AccountNo;
223
        return $this;
224
    }
225
226
    /**
227
     * @return int
228
     */
229
    public function getID_Dept()
230
    {
231
        return $this->ID_Dept;
232
    }
233
234
    /**
235
     * @param int $ID_Dept
236
     * @return \Gueststream\PMS\IQWare\API\CancelResponse
237
     */
238
    public function setID_Dept($ID_Dept)
239
    {
240
        $this->ID_Dept = $ID_Dept;
241
        return $this;
242
    }
243
244
    /**
245
     * @return boolean
246
     */
247
    public function getMustRefundCard()
248
    {
249
        return $this->MustRefundCard;
250
    }
251
252
    /**
253
     * @param boolean $MustRefundCard
254
     * @return \Gueststream\PMS\IQWare\API\CancelResponse
255
     */
256
    public function setMustRefundCard($MustRefundCard)
257
    {
258
        $this->MustRefundCard = $MustRefundCard;
259
        return $this;
260
    }
261
}
262