Issues (1169)

Security Analysis    no request data  

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

src/API/PostTransaction.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5 View Code Duplication
class PostTransaction
0 ignored issues
show
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