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/OwnerReservationValue.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 OwnerReservationValue
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 float $FirstNightNoTx
10
     */
11
    protected $FirstNightNoTx = null;
12
13
    /**
14
     * @var float $FirstNight
15
     */
16
    protected $FirstNight = null;
17
18
    /**
19
     * @var float $TotalStay
20
     */
21
    protected $TotalStay = null;
22
23
    /**
24
     * @var float $AvgNight
25
     */
26
    protected $AvgNight = null;
27
28
    /**
29
     * @var float $RequiredDeposit
30
     */
31
    protected $RequiredDeposit = null;
32
33
    /**
34
     * @var int $CurrencyId
35
     */
36
    protected $CurrencyId = null;
37
38
    /**
39
     * @var StayBreakDown $StayBreakDown
40
     */
41
    protected $StayBreakDown = null;
42
43
    /**
44
     * @param float $FirstNightNoTx
45
     * @param float $FirstNight
46
     * @param float $TotalStay
47
     * @param float $AvgNight
48
     * @param float $RequiredDeposit
49
     * @param int $CurrencyId
50
     */
51
    public function __construct($FirstNightNoTx, $FirstNight, $TotalStay, $AvgNight, $RequiredDeposit, $CurrencyId)
52
    {
53
        $this->FirstNightNoTx = $FirstNightNoTx;
54
        $this->FirstNight = $FirstNight;
55
        $this->TotalStay = $TotalStay;
56
        $this->AvgNight = $AvgNight;
57
        $this->RequiredDeposit = $RequiredDeposit;
58
        $this->CurrencyId = $CurrencyId;
59
    }
60
61
    /**
62
     * @return float
63
     */
64
    public function getFirstNightNoTx()
65
    {
66
        return $this->FirstNightNoTx;
67
    }
68
69
    /**
70
     * @param float $FirstNightNoTx
71
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValue
72
     */
73
    public function setFirstNightNoTx($FirstNightNoTx)
74
    {
75
        $this->FirstNightNoTx = $FirstNightNoTx;
76
        return $this;
77
    }
78
79
    /**
80
     * @return float
81
     */
82
    public function getFirstNight()
83
    {
84
        return $this->FirstNight;
85
    }
86
87
    /**
88
     * @param float $FirstNight
89
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValue
90
     */
91
    public function setFirstNight($FirstNight)
92
    {
93
        $this->FirstNight = $FirstNight;
94
        return $this;
95
    }
96
97
    /**
98
     * @return float
99
     */
100
    public function getTotalStay()
101
    {
102
        return $this->TotalStay;
103
    }
104
105
    /**
106
     * @param float $TotalStay
107
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValue
108
     */
109
    public function setTotalStay($TotalStay)
110
    {
111
        $this->TotalStay = $TotalStay;
112
        return $this;
113
    }
114
115
    /**
116
     * @return float
117
     */
118
    public function getAvgNight()
119
    {
120
        return $this->AvgNight;
121
    }
122
123
    /**
124
     * @param float $AvgNight
125
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValue
126
     */
127
    public function setAvgNight($AvgNight)
128
    {
129
        $this->AvgNight = $AvgNight;
130
        return $this;
131
    }
132
133
    /**
134
     * @return float
135
     */
136
    public function getRequiredDeposit()
137
    {
138
        return $this->RequiredDeposit;
139
    }
140
141
    /**
142
     * @param float $RequiredDeposit
143
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValue
144
     */
145
    public function setRequiredDeposit($RequiredDeposit)
146
    {
147
        $this->RequiredDeposit = $RequiredDeposit;
148
        return $this;
149
    }
150
151
    /**
152
     * @return int
153
     */
154
    public function getCurrencyId()
155
    {
156
        return $this->CurrencyId;
157
    }
158
159
    /**
160
     * @param int $CurrencyId
161
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValue
162
     */
163
    public function setCurrencyId($CurrencyId)
164
    {
165
        $this->CurrencyId = $CurrencyId;
166
        return $this;
167
    }
168
169
    /**
170
     * @return StayBreakDown
171
     */
172
    public function getStayBreakDown()
173
    {
174
        return $this->StayBreakDown;
175
    }
176
177
    /**
178
     * @param StayBreakDown $StayBreakDown
179
     * @return \Gueststream\PMS\IQWare\API\OwnerReservationValue
180
     */
181
    public function setStayBreakDown($StayBreakDown)
182
    {
183
        $this->StayBreakDown = $StayBreakDown;
184
        return $this;
185
    }
186
}
187