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/BeachChairGetAvailElementsSitesForStay.php (4 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 BeachChairGetAvailElementsSitesForStay
6
{
7
8
    /**
9
     * @var int $intGUID
10
     */
11
    protected $intGUID = null;
12
13
    /**
14
     * @var string $strLanguage
15
     */
16
    protected $strLanguage = null;
17
18
    /**
19
     * @var \DateTime $arrDate
20
     */
21
    protected $arrDate = null;
22
23
    /**
24
     * @var \DateTime $depDate
25
     */
26
    protected $depDate = null;
27
28
    /**
29
     * @param int $intGUID
30
     * @param string $strLanguage
31
     * @param \DateTime $arrDate
32
     * @param \DateTime $depDate
33
     */
34
    public function __construct($intGUID, $strLanguage, \DateTime $arrDate, \DateTime $depDate)
35
    {
36
        $this->intGUID = $intGUID;
37
        $this->strLanguage = $strLanguage;
38
        $this->arrDate = $arrDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $arrDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $arrDate.

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

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...
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getIntGUID()
46
    {
47
        return $this->intGUID;
48
    }
49
50
    /**
51
     * @param int $intGUID
52
     * @return \Gueststream\PMS\IQWare\API\BeachChairGetAvailElementsSitesForStay
53
     */
54
    public function setIntGUID($intGUID)
55
    {
56
        $this->intGUID = $intGUID;
57
        return $this;
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getStrLanguage()
64
    {
65
        return $this->strLanguage;
66
    }
67
68
    /**
69
     * @param string $strLanguage
70
     * @return \Gueststream\PMS\IQWare\API\BeachChairGetAvailElementsSitesForStay
71
     */
72
    public function setStrLanguage($strLanguage)
73
    {
74
        $this->strLanguage = $strLanguage;
75
        return $this;
76
    }
77
78
    /**
79
     * @return \DateTime
80
     */
81
    public function getArrDate()
82
    {
83
        if ($this->arrDate == null) {
84
            return null;
85
        } else {
86
            try {
87
                return new \DateTime($this->arrDate);
88
            } catch (\Exception $e) {
89
                return false;
90
            }
91
        }
92
    }
93
94
    /**
95
     * @param \DateTime $arrDate
96
     * @return \Gueststream\PMS\IQWare\API\BeachChairGetAvailElementsSitesForStay
97
     */
98
    public function setArrDate(\DateTime $arrDate)
99
    {
100
        $this->arrDate = $arrDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $arrDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $arrDate.

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...
101
        return $this;
102
    }
103
104
    /**
105
     * @return \DateTime
106
     */
107
    public function getDepDate()
108
    {
109
        if ($this->depDate == null) {
110
            return null;
111
        } else {
112
            try {
113
                return new \DateTime($this->depDate);
114
            } catch (\Exception $e) {
115
                return false;
116
            }
117
        }
118
    }
119
120
    /**
121
     * @param \DateTime $depDate
122
     * @return \Gueststream\PMS\IQWare\API\BeachChairGetAvailElementsSitesForStay
123
     */
124
    public function setDepDate(\DateTime $depDate)
125
    {
126
        $this->depDate = $depDate->format(\DateTime::ATOM);
0 ignored issues
show
Documentation Bug introduced by
It seems like $depDate->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $depDate.

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...
127
        return $this;
128
    }
129
}
130