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/WebRes_GetGroupBlocAvailability.php (5 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 View Code Duplication
class WebRes_GetGroupBlocAvailability
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 $guid
10
     */
11
    protected $guid = null;
12
13
    /**
14
     * @var string $LanguageCode
15
     */
16
    protected $LanguageCode = null;
17
18
    /**
19
     * @var int $ID_Account
20
     */
21
    protected $ID_Account = null;
22
23
    /**
24
     * @var \DateTime $StartDate
25
     */
26
    protected $StartDate = null;
27
28
    /**
29
     * @var \DateTime $EndDate
30
     */
31
    protected $EndDate = null;
32
33
    /**
34
     * @var TGroupBlocType $BlocType
35
     */
36
    protected $BlocType = null;
37
38
    /**
39
     * @var TGroupBlocQtyType $BlocQtyType
40
     */
41
    protected $BlocQtyType = null;
42
43
    /**
44
     * @param int $guid
45
     * @param string $LanguageCode
46
     * @param int $ID_Account
47
     * @param \DateTime $StartDate
48
     * @param \DateTime $EndDate
49
     * @param TGroupBlocType $BlocType
50
     * @param TGroupBlocQtyType $BlocQtyType
51
     */
52
    public function __construct($guid, $LanguageCode, $ID_Account, \DateTime $StartDate, \DateTime $EndDate, $BlocType, $BlocQtyType)
53
    {
54
        $this->guid = $guid;
55
        $this->LanguageCode = $LanguageCode;
56
        $this->ID_Account = $ID_Account;
57
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $StartDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $StartDate.

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...
58
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $EndDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $EndDate.

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...
59
        $this->BlocType = $BlocType;
60
        $this->BlocQtyType = $BlocQtyType;
61
    }
62
63
    /**
64
     * @return int
65
     */
66
    public function getGuid()
67
    {
68
        return $this->guid;
69
    }
70
71
    /**
72
     * @param int $guid
73
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability
74
     */
75
    public function setGuid($guid)
76
    {
77
        $this->guid = $guid;
78
        return $this;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function getLanguageCode()
85
    {
86
        return $this->LanguageCode;
87
    }
88
89
    /**
90
     * @param string $LanguageCode
91
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability
92
     */
93
    public function setLanguageCode($LanguageCode)
94
    {
95
        $this->LanguageCode = $LanguageCode;
96
        return $this;
97
    }
98
99
    /**
100
     * @return int
101
     */
102
    public function getID_Account()
103
    {
104
        return $this->ID_Account;
105
    }
106
107
    /**
108
     * @param int $ID_Account
109
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability
110
     */
111
    public function setID_Account($ID_Account)
112
    {
113
        $this->ID_Account = $ID_Account;
114
        return $this;
115
    }
116
117
    /**
118
     * @return \DateTime
119
     */
120
    public function getStartDate()
121
    {
122
        if ($this->StartDate == null) {
123
            return null;
124
        } else {
125
            try {
126
                return new \DateTime($this->StartDate);
127
            } catch (\Exception $e) {
128
                return false;
129
            }
130
        }
131
    }
132
133
    /**
134
     * @param \DateTime $StartDate
135
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability
136
     */
137
    public function setStartDate(\DateTime $StartDate)
138
    {
139
        $this->StartDate = $StartDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $StartDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $StartDate.

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...
140
        return $this;
141
    }
142
143
    /**
144
     * @return \DateTime
145
     */
146
    public function getEndDate()
147
    {
148
        if ($this->EndDate == null) {
149
            return null;
150
        } else {
151
            try {
152
                return new \DateTime($this->EndDate);
153
            } catch (\Exception $e) {
154
                return false;
155
            }
156
        }
157
    }
158
159
    /**
160
     * @param \DateTime $EndDate
161
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability
162
     */
163
    public function setEndDate(\DateTime $EndDate)
164
    {
165
        $this->EndDate = $EndDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $EndDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $EndDate.

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...
166
        return $this;
167
    }
168
169
    /**
170
     * @return TGroupBlocType
171
     */
172
    public function getBlocType()
173
    {
174
        return $this->BlocType;
175
    }
176
177
    /**
178
     * @param TGroupBlocType $BlocType
179
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability
180
     */
181
    public function setBlocType($BlocType)
182
    {
183
        $this->BlocType = $BlocType;
184
        return $this;
185
    }
186
187
    /**
188
     * @return TGroupBlocQtyType
189
     */
190
    public function getBlocQtyType()
191
    {
192
        return $this->BlocQtyType;
193
    }
194
195
    /**
196
     * @param TGroupBlocQtyType $BlocQtyType
197
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetGroupBlocAvailability
198
     */
199
    public function setBlocQtyType($BlocQtyType)
200
    {
201
        $this->BlocQtyType = $BlocQtyType;
202
        return $this;
203
    }
204
}
205