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