Gueststream-Inc /
iqware
This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include, or for example
via PHP's auto-loading mechanism.
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 cComments |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var int $SeqNo |
||
| 10 | */ |
||
| 11 | protected $SeqNo = null; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string $ComDescription |
||
| 15 | */ |
||
| 16 | protected $ComDescription = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var TCommentStatus $Status |
||
| 20 | */ |
||
| 21 | protected $Status = null; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var \DateTime $DateComIn |
||
| 25 | */ |
||
| 26 | protected $DateComIn = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var int $ID_UserComIn |
||
| 30 | */ |
||
| 31 | protected $ID_UserComIn = null; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string $UserNameComIn |
||
| 35 | */ |
||
| 36 | protected $UserNameComIn = null; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var \DateTime $DateComDelivered |
||
| 40 | */ |
||
| 41 | protected $DateComDelivered = null; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @var int $ID_UserComDelivered |
||
| 45 | */ |
||
| 46 | protected $ID_UserComDelivered = null; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @var string $UserNameComDelivered |
||
| 50 | */ |
||
| 51 | protected $UserNameComDelivered = null; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param int $SeqNo |
||
| 55 | * @param TCommentStatus $Status |
||
| 56 | * @param \DateTime $DateComIn |
||
| 57 | * @param int $ID_UserComIn |
||
| 58 | * @param \DateTime $DateComDelivered |
||
| 59 | * @param int $ID_UserComDelivered |
||
| 60 | */ |
||
| 61 | public function __construct($SeqNo, $Status, \DateTime $DateComIn, $ID_UserComIn, \DateTime $DateComDelivered, $ID_UserComDelivered) |
||
| 62 | { |
||
| 63 | $this->SeqNo = $SeqNo; |
||
| 64 | $this->Status = $Status; |
||
| 65 | $this->DateComIn = $DateComIn->format(\DateTime::ATOM); |
||
|
0 ignored issues
–
show
|
|||
| 66 | $this->ID_UserComIn = $ID_UserComIn; |
||
| 67 | $this->DateComDelivered = $DateComDelivered->format(\DateTime::ATOM); |
||
|
0 ignored issues
–
show
It seems like
$DateComDelivered->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $DateComDelivered.
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...
|
|||
| 68 | $this->ID_UserComDelivered = $ID_UserComDelivered; |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return int |
||
| 73 | */ |
||
| 74 | public function getSeqNo() |
||
| 75 | { |
||
| 76 | return $this->SeqNo; |
||
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param int $SeqNo |
||
| 81 | * @return \Gueststream\PMS\IQWare\API\cComments |
||
| 82 | */ |
||
| 83 | public function setSeqNo($SeqNo) |
||
| 84 | { |
||
| 85 | $this->SeqNo = $SeqNo; |
||
| 86 | return $this; |
||
| 87 | } |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @return string |
||
| 91 | */ |
||
| 92 | public function getComDescription() |
||
| 93 | { |
||
| 94 | return $this->ComDescription; |
||
| 95 | } |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @param string $ComDescription |
||
| 99 | * @return \Gueststream\PMS\IQWare\API\cComments |
||
| 100 | */ |
||
| 101 | public function setComDescription($ComDescription) |
||
| 102 | { |
||
| 103 | $this->ComDescription = $ComDescription; |
||
| 104 | return $this; |
||
| 105 | } |
||
| 106 | |||
| 107 | /** |
||
| 108 | * @return TCommentStatus |
||
| 109 | */ |
||
| 110 | public function getStatus() |
||
| 111 | { |
||
| 112 | return $this->Status; |
||
| 113 | } |
||
| 114 | |||
| 115 | /** |
||
| 116 | * @param TCommentStatus $Status |
||
| 117 | * @return \Gueststream\PMS\IQWare\API\cComments |
||
| 118 | */ |
||
| 119 | public function setStatus($Status) |
||
| 120 | { |
||
| 121 | $this->Status = $Status; |
||
| 122 | return $this; |
||
| 123 | } |
||
| 124 | |||
| 125 | /** |
||
| 126 | * @return \DateTime |
||
| 127 | */ |
||
| 128 | public function getDateComIn() |
||
| 129 | { |
||
| 130 | if ($this->DateComIn == null) { |
||
| 131 | return null; |
||
| 132 | } else { |
||
| 133 | try { |
||
| 134 | return new \DateTime($this->DateComIn); |
||
| 135 | } catch (\Exception $e) { |
||
| 136 | return false; |
||
| 137 | } |
||
| 138 | } |
||
| 139 | } |
||
| 140 | |||
| 141 | /** |
||
| 142 | * @param \DateTime $DateComIn |
||
| 143 | * @return \Gueststream\PMS\IQWare\API\cComments |
||
| 144 | */ |
||
| 145 | public function setDateComIn(\DateTime $DateComIn) |
||
| 146 | { |
||
| 147 | $this->DateComIn = $DateComIn->format(\DateTime::ATOM); |
||
|
0 ignored issues
–
show
It seems like
$DateComIn->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $DateComIn.
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...
|
|||
| 148 | return $this; |
||
| 149 | } |
||
| 150 | |||
| 151 | /** |
||
| 152 | * @return int |
||
| 153 | */ |
||
| 154 | public function getID_UserComIn() |
||
| 155 | { |
||
| 156 | return $this->ID_UserComIn; |
||
| 157 | } |
||
| 158 | |||
| 159 | /** |
||
| 160 | * @param int $ID_UserComIn |
||
| 161 | * @return \Gueststream\PMS\IQWare\API\cComments |
||
| 162 | */ |
||
| 163 | public function setID_UserComIn($ID_UserComIn) |
||
| 164 | { |
||
| 165 | $this->ID_UserComIn = $ID_UserComIn; |
||
| 166 | return $this; |
||
| 167 | } |
||
| 168 | |||
| 169 | /** |
||
| 170 | * @return string |
||
| 171 | */ |
||
| 172 | public function getUserNameComIn() |
||
| 173 | { |
||
| 174 | return $this->UserNameComIn; |
||
| 175 | } |
||
| 176 | |||
| 177 | /** |
||
| 178 | * @param string $UserNameComIn |
||
| 179 | * @return \Gueststream\PMS\IQWare\API\cComments |
||
| 180 | */ |
||
| 181 | public function setUserNameComIn($UserNameComIn) |
||
| 182 | { |
||
| 183 | $this->UserNameComIn = $UserNameComIn; |
||
| 184 | return $this; |
||
| 185 | } |
||
| 186 | |||
| 187 | /** |
||
| 188 | * @return \DateTime |
||
| 189 | */ |
||
| 190 | public function getDateComDelivered() |
||
| 191 | { |
||
| 192 | if ($this->DateComDelivered == null) { |
||
| 193 | return null; |
||
| 194 | } else { |
||
| 195 | try { |
||
| 196 | return new \DateTime($this->DateComDelivered); |
||
| 197 | } catch (\Exception $e) { |
||
| 198 | return false; |
||
| 199 | } |
||
| 200 | } |
||
| 201 | } |
||
| 202 | |||
| 203 | /** |
||
| 204 | * @param \DateTime $DateComDelivered |
||
| 205 | * @return \Gueststream\PMS\IQWare\API\cComments |
||
| 206 | */ |
||
| 207 | public function setDateComDelivered(\DateTime $DateComDelivered) |
||
| 208 | { |
||
| 209 | $this->DateComDelivered = $DateComDelivered->format(\DateTime::ATOM); |
||
|
0 ignored issues
–
show
It seems like
$DateComDelivered->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $DateComDelivered.
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...
|
|||
| 210 | return $this; |
||
| 211 | } |
||
| 212 | |||
| 213 | /** |
||
| 214 | * @return int |
||
| 215 | */ |
||
| 216 | public function getID_UserComDelivered() |
||
| 217 | { |
||
| 218 | return $this->ID_UserComDelivered; |
||
| 219 | } |
||
| 220 | |||
| 221 | /** |
||
| 222 | * @param int $ID_UserComDelivered |
||
| 223 | * @return \Gueststream\PMS\IQWare\API\cComments |
||
| 224 | */ |
||
| 225 | public function setID_UserComDelivered($ID_UserComDelivered) |
||
| 226 | { |
||
| 227 | $this->ID_UserComDelivered = $ID_UserComDelivered; |
||
| 228 | return $this; |
||
| 229 | } |
||
| 230 | |||
| 231 | /** |
||
| 232 | * @return string |
||
| 233 | */ |
||
| 234 | public function getUserNameComDelivered() |
||
| 235 | { |
||
| 236 | return $this->UserNameComDelivered; |
||
| 237 | } |
||
| 238 | |||
| 239 | /** |
||
| 240 | * @param string $UserNameComDelivered |
||
| 241 | * @return \Gueststream\PMS\IQWare\API\cComments |
||
| 242 | */ |
||
| 243 | public function setUserNameComDelivered($UserNameComDelivered) |
||
| 244 | { |
||
| 245 | $this->UserNameComDelivered = $UserNameComDelivered; |
||
| 246 | return $this; |
||
| 247 | } |
||
| 248 | } |
||
| 249 |
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..