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 ProtobasePostResult |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var string $MaskedPan |
||
| 10 | */ |
||
| 11 | protected $MaskedPan = null; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var int $ID_CreditCard |
||
| 15 | */ |
||
| 16 | protected $ID_CreditCard = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string $VaultResultToken |
||
| 20 | */ |
||
| 21 | protected $VaultResultToken = null; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string $VaultResultMessage |
||
| 25 | */ |
||
| 26 | protected $VaultResultMessage = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string $ApprovalCode |
||
| 30 | */ |
||
| 31 | protected $ApprovalCode = null; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string $HostResponseCode |
||
| 35 | */ |
||
| 36 | protected $HostResponseCode = null; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var string $HostResponseMessage |
||
| 40 | */ |
||
| 41 | protected $HostResponseMessage = null; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @var int $ProtobaseResponseCode |
||
| 45 | */ |
||
| 46 | protected $ProtobaseResponseCode = null; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @var string $ProtobaseResponseMessage |
||
| 50 | */ |
||
| 51 | protected $ProtobaseResponseMessage = null; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @var string $CardType |
||
| 55 | */ |
||
| 56 | protected $CardType = null; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @var string $CardName |
||
| 60 | */ |
||
| 61 | protected $CardName = null; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @var string $MerchantNumber |
||
| 65 | */ |
||
| 66 | protected $MerchantNumber = null; |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @var string $HostReferenceNumber |
||
| 70 | */ |
||
| 71 | protected $HostReferenceNumber = null; |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @var string $IQWareErrorMessage |
||
| 75 | */ |
||
| 76 | protected $IQWareErrorMessage = null; |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @var int $AccountID |
||
| 80 | */ |
||
| 81 | protected $AccountID = null; |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @var int $AccountNo |
||
| 85 | */ |
||
| 86 | protected $AccountNo = null; |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @var string $AccountName |
||
| 90 | */ |
||
| 91 | protected $AccountName = null; |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @var \DateTime $TransactionDateTime |
||
| 95 | */ |
||
| 96 | protected $TransactionDateTime = null; |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @var int $ItemCode |
||
| 100 | */ |
||
| 101 | protected $ItemCode = null; |
||
| 102 | |||
| 103 | /** |
||
| 104 | * @var string $ItemText |
||
| 105 | */ |
||
| 106 | protected $ItemText = null; |
||
| 107 | |||
| 108 | /** |
||
| 109 | * @var int $ReferenceNumber |
||
| 110 | */ |
||
| 111 | protected $ReferenceNumber = null; |
||
| 112 | |||
| 113 | /** |
||
| 114 | * @param int $ID_CreditCard |
||
| 115 | * @param int $ProtobaseResponseCode |
||
| 116 | * @param int $AccountID |
||
| 117 | * @param int $AccountNo |
||
| 118 | * @param \DateTime $TransactionDateTime |
||
| 119 | * @param int $ItemCode |
||
| 120 | * @param int $ReferenceNumber |
||
| 121 | */ |
||
| 122 | public function __construct($ID_CreditCard, $ProtobaseResponseCode, $AccountID, $AccountNo, \DateTime $TransactionDateTime, $ItemCode, $ReferenceNumber) |
||
| 123 | { |
||
| 124 | $this->ID_CreditCard = $ID_CreditCard; |
||
| 125 | $this->ProtobaseResponseCode = $ProtobaseResponseCode; |
||
| 126 | $this->AccountID = $AccountID; |
||
| 127 | $this->AccountNo = $AccountNo; |
||
| 128 | $this->TransactionDateTime = $TransactionDateTime->format(\DateTime::ATOM); |
||
|
0 ignored issues
–
show
|
|||
| 129 | $this->ItemCode = $ItemCode; |
||
| 130 | $this->ReferenceNumber = $ReferenceNumber; |
||
| 131 | } |
||
| 132 | |||
| 133 | /** |
||
| 134 | * @return string |
||
| 135 | */ |
||
| 136 | public function getMaskedPan() |
||
| 137 | { |
||
| 138 | return $this->MaskedPan; |
||
| 139 | } |
||
| 140 | |||
| 141 | /** |
||
| 142 | * @param string $MaskedPan |
||
| 143 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 144 | */ |
||
| 145 | public function setMaskedPan($MaskedPan) |
||
| 146 | { |
||
| 147 | $this->MaskedPan = $MaskedPan; |
||
| 148 | return $this; |
||
| 149 | } |
||
| 150 | |||
| 151 | /** |
||
| 152 | * @return int |
||
| 153 | */ |
||
| 154 | public function getID_CreditCard() |
||
| 155 | { |
||
| 156 | return $this->ID_CreditCard; |
||
| 157 | } |
||
| 158 | |||
| 159 | /** |
||
| 160 | * @param int $ID_CreditCard |
||
| 161 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 162 | */ |
||
| 163 | public function setID_CreditCard($ID_CreditCard) |
||
| 164 | { |
||
| 165 | $this->ID_CreditCard = $ID_CreditCard; |
||
| 166 | return $this; |
||
| 167 | } |
||
| 168 | |||
| 169 | /** |
||
| 170 | * @return string |
||
| 171 | */ |
||
| 172 | public function getVaultResultToken() |
||
| 173 | { |
||
| 174 | return $this->VaultResultToken; |
||
| 175 | } |
||
| 176 | |||
| 177 | /** |
||
| 178 | * @param string $VaultResultToken |
||
| 179 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 180 | */ |
||
| 181 | public function setVaultResultToken($VaultResultToken) |
||
| 182 | { |
||
| 183 | $this->VaultResultToken = $VaultResultToken; |
||
| 184 | return $this; |
||
| 185 | } |
||
| 186 | |||
| 187 | /** |
||
| 188 | * @return string |
||
| 189 | */ |
||
| 190 | public function getVaultResultMessage() |
||
| 191 | { |
||
| 192 | return $this->VaultResultMessage; |
||
| 193 | } |
||
| 194 | |||
| 195 | /** |
||
| 196 | * @param string $VaultResultMessage |
||
| 197 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 198 | */ |
||
| 199 | public function setVaultResultMessage($VaultResultMessage) |
||
| 200 | { |
||
| 201 | $this->VaultResultMessage = $VaultResultMessage; |
||
| 202 | return $this; |
||
| 203 | } |
||
| 204 | |||
| 205 | /** |
||
| 206 | * @return string |
||
| 207 | */ |
||
| 208 | public function getApprovalCode() |
||
| 209 | { |
||
| 210 | return $this->ApprovalCode; |
||
| 211 | } |
||
| 212 | |||
| 213 | /** |
||
| 214 | * @param string $ApprovalCode |
||
| 215 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 216 | */ |
||
| 217 | public function setApprovalCode($ApprovalCode) |
||
| 218 | { |
||
| 219 | $this->ApprovalCode = $ApprovalCode; |
||
| 220 | return $this; |
||
| 221 | } |
||
| 222 | |||
| 223 | /** |
||
| 224 | * @return string |
||
| 225 | */ |
||
| 226 | public function getHostResponseCode() |
||
| 227 | { |
||
| 228 | return $this->HostResponseCode; |
||
| 229 | } |
||
| 230 | |||
| 231 | /** |
||
| 232 | * @param string $HostResponseCode |
||
| 233 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 234 | */ |
||
| 235 | public function setHostResponseCode($HostResponseCode) |
||
| 236 | { |
||
| 237 | $this->HostResponseCode = $HostResponseCode; |
||
| 238 | return $this; |
||
| 239 | } |
||
| 240 | |||
| 241 | /** |
||
| 242 | * @return string |
||
| 243 | */ |
||
| 244 | public function getHostResponseMessage() |
||
| 245 | { |
||
| 246 | return $this->HostResponseMessage; |
||
| 247 | } |
||
| 248 | |||
| 249 | /** |
||
| 250 | * @param string $HostResponseMessage |
||
| 251 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 252 | */ |
||
| 253 | public function setHostResponseMessage($HostResponseMessage) |
||
| 254 | { |
||
| 255 | $this->HostResponseMessage = $HostResponseMessage; |
||
| 256 | return $this; |
||
| 257 | } |
||
| 258 | |||
| 259 | /** |
||
| 260 | * @return int |
||
| 261 | */ |
||
| 262 | public function getProtobaseResponseCode() |
||
| 263 | { |
||
| 264 | return $this->ProtobaseResponseCode; |
||
| 265 | } |
||
| 266 | |||
| 267 | /** |
||
| 268 | * @param int $ProtobaseResponseCode |
||
| 269 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 270 | */ |
||
| 271 | public function setProtobaseResponseCode($ProtobaseResponseCode) |
||
| 272 | { |
||
| 273 | $this->ProtobaseResponseCode = $ProtobaseResponseCode; |
||
| 274 | return $this; |
||
| 275 | } |
||
| 276 | |||
| 277 | /** |
||
| 278 | * @return string |
||
| 279 | */ |
||
| 280 | public function getProtobaseResponseMessage() |
||
| 281 | { |
||
| 282 | return $this->ProtobaseResponseMessage; |
||
| 283 | } |
||
| 284 | |||
| 285 | /** |
||
| 286 | * @param string $ProtobaseResponseMessage |
||
| 287 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 288 | */ |
||
| 289 | public function setProtobaseResponseMessage($ProtobaseResponseMessage) |
||
| 290 | { |
||
| 291 | $this->ProtobaseResponseMessage = $ProtobaseResponseMessage; |
||
| 292 | return $this; |
||
| 293 | } |
||
| 294 | |||
| 295 | /** |
||
| 296 | * @return string |
||
| 297 | */ |
||
| 298 | public function getCardType() |
||
| 299 | { |
||
| 300 | return $this->CardType; |
||
| 301 | } |
||
| 302 | |||
| 303 | /** |
||
| 304 | * @param string $CardType |
||
| 305 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 306 | */ |
||
| 307 | public function setCardType($CardType) |
||
| 308 | { |
||
| 309 | $this->CardType = $CardType; |
||
| 310 | return $this; |
||
| 311 | } |
||
| 312 | |||
| 313 | /** |
||
| 314 | * @return string |
||
| 315 | */ |
||
| 316 | public function getCardName() |
||
| 317 | { |
||
| 318 | return $this->CardName; |
||
| 319 | } |
||
| 320 | |||
| 321 | /** |
||
| 322 | * @param string $CardName |
||
| 323 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 324 | */ |
||
| 325 | public function setCardName($CardName) |
||
| 326 | { |
||
| 327 | $this->CardName = $CardName; |
||
| 328 | return $this; |
||
| 329 | } |
||
| 330 | |||
| 331 | /** |
||
| 332 | * @return string |
||
| 333 | */ |
||
| 334 | public function getMerchantNumber() |
||
| 335 | { |
||
| 336 | return $this->MerchantNumber; |
||
| 337 | } |
||
| 338 | |||
| 339 | /** |
||
| 340 | * @param string $MerchantNumber |
||
| 341 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 342 | */ |
||
| 343 | public function setMerchantNumber($MerchantNumber) |
||
| 344 | { |
||
| 345 | $this->MerchantNumber = $MerchantNumber; |
||
| 346 | return $this; |
||
| 347 | } |
||
| 348 | |||
| 349 | /** |
||
| 350 | * @return string |
||
| 351 | */ |
||
| 352 | public function getHostReferenceNumber() |
||
| 353 | { |
||
| 354 | return $this->HostReferenceNumber; |
||
| 355 | } |
||
| 356 | |||
| 357 | /** |
||
| 358 | * @param string $HostReferenceNumber |
||
| 359 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 360 | */ |
||
| 361 | public function setHostReferenceNumber($HostReferenceNumber) |
||
| 362 | { |
||
| 363 | $this->HostReferenceNumber = $HostReferenceNumber; |
||
| 364 | return $this; |
||
| 365 | } |
||
| 366 | |||
| 367 | /** |
||
| 368 | * @return string |
||
| 369 | */ |
||
| 370 | public function getIQWareErrorMessage() |
||
| 371 | { |
||
| 372 | return $this->IQWareErrorMessage; |
||
| 373 | } |
||
| 374 | |||
| 375 | /** |
||
| 376 | * @param string $IQWareErrorMessage |
||
| 377 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 378 | */ |
||
| 379 | public function setIQWareErrorMessage($IQWareErrorMessage) |
||
| 380 | { |
||
| 381 | $this->IQWareErrorMessage = $IQWareErrorMessage; |
||
| 382 | return $this; |
||
| 383 | } |
||
| 384 | |||
| 385 | /** |
||
| 386 | * @return int |
||
| 387 | */ |
||
| 388 | public function getAccountID() |
||
| 389 | { |
||
| 390 | return $this->AccountID; |
||
| 391 | } |
||
| 392 | |||
| 393 | /** |
||
| 394 | * @param int $AccountID |
||
| 395 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 396 | */ |
||
| 397 | public function setAccountID($AccountID) |
||
| 398 | { |
||
| 399 | $this->AccountID = $AccountID; |
||
| 400 | return $this; |
||
| 401 | } |
||
| 402 | |||
| 403 | /** |
||
| 404 | * @return int |
||
| 405 | */ |
||
| 406 | public function getAccountNo() |
||
| 407 | { |
||
| 408 | return $this->AccountNo; |
||
| 409 | } |
||
| 410 | |||
| 411 | /** |
||
| 412 | * @param int $AccountNo |
||
| 413 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 414 | */ |
||
| 415 | public function setAccountNo($AccountNo) |
||
| 416 | { |
||
| 417 | $this->AccountNo = $AccountNo; |
||
| 418 | return $this; |
||
| 419 | } |
||
| 420 | |||
| 421 | /** |
||
| 422 | * @return string |
||
| 423 | */ |
||
| 424 | public function getAccountName() |
||
| 425 | { |
||
| 426 | return $this->AccountName; |
||
| 427 | } |
||
| 428 | |||
| 429 | /** |
||
| 430 | * @param string $AccountName |
||
| 431 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 432 | */ |
||
| 433 | public function setAccountName($AccountName) |
||
| 434 | { |
||
| 435 | $this->AccountName = $AccountName; |
||
| 436 | return $this; |
||
| 437 | } |
||
| 438 | |||
| 439 | /** |
||
| 440 | * @return \DateTime |
||
| 441 | */ |
||
| 442 | public function getTransactionDateTime() |
||
| 443 | { |
||
| 444 | if ($this->TransactionDateTime == null) { |
||
| 445 | return null; |
||
| 446 | } else { |
||
| 447 | try { |
||
| 448 | return new \DateTime($this->TransactionDateTime); |
||
| 449 | } catch (\Exception $e) { |
||
| 450 | return false; |
||
| 451 | } |
||
| 452 | } |
||
| 453 | } |
||
| 454 | |||
| 455 | /** |
||
| 456 | * @param \DateTime $TransactionDateTime |
||
| 457 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 458 | */ |
||
| 459 | public function setTransactionDateTime(\DateTime $TransactionDateTime) |
||
| 460 | { |
||
| 461 | $this->TransactionDateTime = $TransactionDateTime->format(\DateTime::ATOM); |
||
|
0 ignored issues
–
show
It seems like
$TransactionDateTime->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $TransactionDateTime.
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...
|
|||
| 462 | return $this; |
||
| 463 | } |
||
| 464 | |||
| 465 | /** |
||
| 466 | * @return int |
||
| 467 | */ |
||
| 468 | public function getItemCode() |
||
| 469 | { |
||
| 470 | return $this->ItemCode; |
||
| 471 | } |
||
| 472 | |||
| 473 | /** |
||
| 474 | * @param int $ItemCode |
||
| 475 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 476 | */ |
||
| 477 | public function setItemCode($ItemCode) |
||
| 478 | { |
||
| 479 | $this->ItemCode = $ItemCode; |
||
| 480 | return $this; |
||
| 481 | } |
||
| 482 | |||
| 483 | /** |
||
| 484 | * @return string |
||
| 485 | */ |
||
| 486 | public function getItemText() |
||
| 487 | { |
||
| 488 | return $this->ItemText; |
||
| 489 | } |
||
| 490 | |||
| 491 | /** |
||
| 492 | * @param string $ItemText |
||
| 493 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 494 | */ |
||
| 495 | public function setItemText($ItemText) |
||
| 496 | { |
||
| 497 | $this->ItemText = $ItemText; |
||
| 498 | return $this; |
||
| 499 | } |
||
| 500 | |||
| 501 | /** |
||
| 502 | * @return int |
||
| 503 | */ |
||
| 504 | public function getReferenceNumber() |
||
| 505 | { |
||
| 506 | return $this->ReferenceNumber; |
||
| 507 | } |
||
| 508 | |||
| 509 | /** |
||
| 510 | * @param int $ReferenceNumber |
||
| 511 | * @return \Gueststream\PMS\IQWare\API\ProtobasePostResult |
||
| 512 | */ |
||
| 513 | public function setReferenceNumber($ReferenceNumber) |
||
| 514 | { |
||
| 515 | $this->ReferenceNumber = $ReferenceNumber; |
||
| 516 | return $this; |
||
| 517 | } |
||
| 518 | } |
||
| 519 |
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..