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/DailyBreakdown.php (3 issues)

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
class DailyBreakdown
6
{
7
8
    /**
9
     * @var int $RoomNo
10
     */
11
    protected $RoomNo = null;
12
13
    /**
14
     * @var int $ID_CodeSrc
15
     */
16
    protected $ID_CodeSrc = null;
17
18
    /**
19
     * @var PricingSBDItemType $ItemType
20
     */
21
    protected $ItemType = null;
22
23
    /**
24
     * @var \DateTime $ADate
25
     */
26
    protected $ADate = null;
27
28
    /**
29
     * @var int $QtyElem
30
     */
31
    protected $QtyElem = null;
32
33
    /**
34
     * @var float $AmountBeforeTaxes
35
     */
36
    protected $AmountBeforeTaxes = null;
37
38
    /**
39
     * @var float $Taxes
40
     */
41
    protected $Taxes = null;
42
43
    /**
44
     * @var int $ID_Currency
45
     */
46
    protected $ID_Currency = null;
47
48
    /**
49
     * @var boolean $InTheRate
50
     */
51
    protected $InTheRate = null;
52
53
    /**
54
     * @param int $RoomNo
55
     * @param int $ID_CodeSrc
56
     * @param PricingSBDItemType $ItemType
57
     * @param \DateTime $ADate
58
     * @param int $QtyElem
59
     * @param float $AmountBeforeTaxes
60
     * @param float $Taxes
61
     * @param int $ID_Currency
62
     * @param boolean $InTheRate
63
     */
64 View Code Duplication
    public function __construct($RoomNo, $ID_CodeSrc, $ItemType, \DateTime $ADate, $QtyElem, $AmountBeforeTaxes, $Taxes, $ID_Currency, $InTheRate)
0 ignored issues
show
This method 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...
65
    {
66
        $this->RoomNo = $RoomNo;
67
        $this->ID_CodeSrc = $ID_CodeSrc;
68
        $this->ItemType = $ItemType;
69
        $this->ADate = $ADate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ADate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ADate.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
70
        $this->QtyElem = $QtyElem;
71
        $this->AmountBeforeTaxes = $AmountBeforeTaxes;
72
        $this->Taxes = $Taxes;
73
        $this->ID_Currency = $ID_Currency;
74
        $this->InTheRate = $InTheRate;
75
    }
76
77
    /**
78
     * @return int
79
     */
80
    public function getRoomNo()
81
    {
82
        return $this->RoomNo;
83
    }
84
85
    /**
86
     * @param int $RoomNo
87
     * @return \Gueststream\PMS\IQWare\API\DailyBreakdown
88
     */
89
    public function setRoomNo($RoomNo)
90
    {
91
        $this->RoomNo = $RoomNo;
92
        return $this;
93
    }
94
95
    /**
96
     * @return int
97
     */
98
    public function getID_CodeSrc()
99
    {
100
        return $this->ID_CodeSrc;
101
    }
102
103
    /**
104
     * @param int $ID_CodeSrc
105
     * @return \Gueststream\PMS\IQWare\API\DailyBreakdown
106
     */
107
    public function setID_CodeSrc($ID_CodeSrc)
108
    {
109
        $this->ID_CodeSrc = $ID_CodeSrc;
110
        return $this;
111
    }
112
113
    /**
114
     * @return PricingSBDItemType
115
     */
116
    public function getItemType()
117
    {
118
        return $this->ItemType;
119
    }
120
121
    /**
122
     * @param PricingSBDItemType $ItemType
123
     * @return \Gueststream\PMS\IQWare\API\DailyBreakdown
124
     */
125
    public function setItemType($ItemType)
126
    {
127
        $this->ItemType = $ItemType;
128
        return $this;
129
    }
130
131
    /**
132
     * @return \DateTime
133
     */
134
    public function getADate()
135
    {
136
        if ($this->ADate == null) {
137
            return null;
138
        } else {
139
            try {
140
                return new \DateTime($this->ADate);
141
            } catch (\Exception $e) {
142
                return false;
143
            }
144
        }
145
    }
146
147
    /**
148
     * @param \DateTime $ADate
149
     * @return \Gueststream\PMS\IQWare\API\DailyBreakdown
150
     */
151
    public function setADate(\DateTime $ADate)
152
    {
153
        $this->ADate = $ADate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $ADate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $ADate.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
154
        return $this;
155
    }
156
157
    /**
158
     * @return int
159
     */
160
    public function getQtyElem()
161
    {
162
        return $this->QtyElem;
163
    }
164
165
    /**
166
     * @param int $QtyElem
167
     * @return \Gueststream\PMS\IQWare\API\DailyBreakdown
168
     */
169
    public function setQtyElem($QtyElem)
170
    {
171
        $this->QtyElem = $QtyElem;
172
        return $this;
173
    }
174
175
    /**
176
     * @return float
177
     */
178
    public function getAmountBeforeTaxes()
179
    {
180
        return $this->AmountBeforeTaxes;
181
    }
182
183
    /**
184
     * @param float $AmountBeforeTaxes
185
     * @return \Gueststream\PMS\IQWare\API\DailyBreakdown
186
     */
187
    public function setAmountBeforeTaxes($AmountBeforeTaxes)
188
    {
189
        $this->AmountBeforeTaxes = $AmountBeforeTaxes;
190
        return $this;
191
    }
192
193
    /**
194
     * @return float
195
     */
196
    public function getTaxes()
197
    {
198
        return $this->Taxes;
199
    }
200
201
    /**
202
     * @param float $Taxes
203
     * @return \Gueststream\PMS\IQWare\API\DailyBreakdown
204
     */
205
    public function setTaxes($Taxes)
206
    {
207
        $this->Taxes = $Taxes;
208
        return $this;
209
    }
210
211
    /**
212
     * @return int
213
     */
214
    public function getID_Currency()
215
    {
216
        return $this->ID_Currency;
217
    }
218
219
    /**
220
     * @param int $ID_Currency
221
     * @return \Gueststream\PMS\IQWare\API\DailyBreakdown
222
     */
223
    public function setID_Currency($ID_Currency)
224
    {
225
        $this->ID_Currency = $ID_Currency;
226
        return $this;
227
    }
228
229
    /**
230
     * @return boolean
231
     */
232
    public function getInTheRate()
233
    {
234
        return $this->InTheRate;
235
    }
236
237
    /**
238
     * @param boolean $InTheRate
239
     * @return \Gueststream\PMS\IQWare\API\DailyBreakdown
240
     */
241
    public function setInTheRate($InTheRate)
242
    {
243
        $this->InTheRate = $InTheRate;
244
        return $this;
245
    }
246
}
247