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 cClubMember |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var int $MemberNo |
||
| 10 | */ |
||
| 11 | protected $MemberNo = null; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var int $ClubNo |
||
| 15 | */ |
||
| 16 | protected $ClubNo = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int $ClubLevelNo |
||
| 20 | */ |
||
| 21 | protected $ClubLevelNo = null; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string $CardPrefixGUID |
||
| 25 | */ |
||
| 26 | protected $CardPrefixGUID = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string $CardNumber |
||
| 30 | */ |
||
| 31 | protected $CardNumber = null; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var int $AccumTotal |
||
| 35 | */ |
||
| 36 | protected $AccumTotal = null; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var int $ExpenseTotal |
||
| 40 | */ |
||
| 41 | protected $ExpenseTotal = null; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @var \DateTime $MemberSince |
||
| 45 | */ |
||
| 46 | protected $MemberSince = null; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @var boolean $IsActive |
||
| 50 | */ |
||
| 51 | protected $IsActive = null; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param int $MemberNo |
||
| 55 | * @param int $ClubNo |
||
| 56 | * @param int $ClubLevelNo |
||
| 57 | * @param int $AccumTotal |
||
| 58 | * @param int $ExpenseTotal |
||
| 59 | * @param \DateTime $MemberSince |
||
| 60 | * @param boolean $IsActive |
||
| 61 | */ |
||
| 62 | public function __construct($MemberNo, $ClubNo, $ClubLevelNo, $AccumTotal, $ExpenseTotal, \DateTime $MemberSince, $IsActive) |
||
| 63 | { |
||
| 64 | $this->MemberNo = $MemberNo; |
||
| 65 | $this->ClubNo = $ClubNo; |
||
| 66 | $this->ClubLevelNo = $ClubLevelNo; |
||
| 67 | $this->AccumTotal = $AccumTotal; |
||
| 68 | $this->ExpenseTotal = $ExpenseTotal; |
||
| 69 | $this->MemberSince = $MemberSince->format(\DateTime::ATOM); |
||
|
0 ignored issues
–
show
|
|||
| 70 | $this->IsActive = $IsActive; |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return int |
||
| 75 | */ |
||
| 76 | public function getMemberNo() |
||
| 77 | { |
||
| 78 | return $this->MemberNo; |
||
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @param int $MemberNo |
||
| 83 | * @return \Gueststream\PMS\IQWare\API\cClubMember |
||
| 84 | */ |
||
| 85 | public function setMemberNo($MemberNo) |
||
| 86 | { |
||
| 87 | $this->MemberNo = $MemberNo; |
||
| 88 | return $this; |
||
| 89 | } |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @return int |
||
| 93 | */ |
||
| 94 | public function getClubNo() |
||
| 95 | { |
||
| 96 | return $this->ClubNo; |
||
| 97 | } |
||
| 98 | |||
| 99 | /** |
||
| 100 | * @param int $ClubNo |
||
| 101 | * @return \Gueststream\PMS\IQWare\API\cClubMember |
||
| 102 | */ |
||
| 103 | public function setClubNo($ClubNo) |
||
| 104 | { |
||
| 105 | $this->ClubNo = $ClubNo; |
||
| 106 | return $this; |
||
| 107 | } |
||
| 108 | |||
| 109 | /** |
||
| 110 | * @return int |
||
| 111 | */ |
||
| 112 | public function getClubLevelNo() |
||
| 113 | { |
||
| 114 | return $this->ClubLevelNo; |
||
| 115 | } |
||
| 116 | |||
| 117 | /** |
||
| 118 | * @param int $ClubLevelNo |
||
| 119 | * @return \Gueststream\PMS\IQWare\API\cClubMember |
||
| 120 | */ |
||
| 121 | public function setClubLevelNo($ClubLevelNo) |
||
| 122 | { |
||
| 123 | $this->ClubLevelNo = $ClubLevelNo; |
||
| 124 | return $this; |
||
| 125 | } |
||
| 126 | |||
| 127 | /** |
||
| 128 | * @return string |
||
| 129 | */ |
||
| 130 | public function getCardPrefixGUID() |
||
| 131 | { |
||
| 132 | return $this->CardPrefixGUID; |
||
| 133 | } |
||
| 134 | |||
| 135 | /** |
||
| 136 | * @param string $CardPrefixGUID |
||
| 137 | * @return \Gueststream\PMS\IQWare\API\cClubMember |
||
| 138 | */ |
||
| 139 | public function setCardPrefixGUID($CardPrefixGUID) |
||
| 140 | { |
||
| 141 | $this->CardPrefixGUID = $CardPrefixGUID; |
||
| 142 | return $this; |
||
| 143 | } |
||
| 144 | |||
| 145 | /** |
||
| 146 | * @return string |
||
| 147 | */ |
||
| 148 | public function getCardNumber() |
||
| 149 | { |
||
| 150 | return $this->CardNumber; |
||
| 151 | } |
||
| 152 | |||
| 153 | /** |
||
| 154 | * @param string $CardNumber |
||
| 155 | * @return \Gueststream\PMS\IQWare\API\cClubMember |
||
| 156 | */ |
||
| 157 | public function setCardNumber($CardNumber) |
||
| 158 | { |
||
| 159 | $this->CardNumber = $CardNumber; |
||
| 160 | return $this; |
||
| 161 | } |
||
| 162 | |||
| 163 | /** |
||
| 164 | * @return int |
||
| 165 | */ |
||
| 166 | public function getAccumTotal() |
||
| 167 | { |
||
| 168 | return $this->AccumTotal; |
||
| 169 | } |
||
| 170 | |||
| 171 | /** |
||
| 172 | * @param int $AccumTotal |
||
| 173 | * @return \Gueststream\PMS\IQWare\API\cClubMember |
||
| 174 | */ |
||
| 175 | public function setAccumTotal($AccumTotal) |
||
| 176 | { |
||
| 177 | $this->AccumTotal = $AccumTotal; |
||
| 178 | return $this; |
||
| 179 | } |
||
| 180 | |||
| 181 | /** |
||
| 182 | * @return int |
||
| 183 | */ |
||
| 184 | public function getExpenseTotal() |
||
| 185 | { |
||
| 186 | return $this->ExpenseTotal; |
||
| 187 | } |
||
| 188 | |||
| 189 | /** |
||
| 190 | * @param int $ExpenseTotal |
||
| 191 | * @return \Gueststream\PMS\IQWare\API\cClubMember |
||
| 192 | */ |
||
| 193 | public function setExpenseTotal($ExpenseTotal) |
||
| 194 | { |
||
| 195 | $this->ExpenseTotal = $ExpenseTotal; |
||
| 196 | return $this; |
||
| 197 | } |
||
| 198 | |||
| 199 | /** |
||
| 200 | * @return \DateTime |
||
| 201 | */ |
||
| 202 | public function getMemberSince() |
||
| 203 | { |
||
| 204 | if ($this->MemberSince == null) { |
||
| 205 | return null; |
||
| 206 | } else { |
||
| 207 | try { |
||
| 208 | return new \DateTime($this->MemberSince); |
||
| 209 | } catch (\Exception $e) { |
||
| 210 | return false; |
||
| 211 | } |
||
| 212 | } |
||
| 213 | } |
||
| 214 | |||
| 215 | /** |
||
| 216 | * @param \DateTime $MemberSince |
||
| 217 | * @return \Gueststream\PMS\IQWare\API\cClubMember |
||
| 218 | */ |
||
| 219 | public function setMemberSince(\DateTime $MemberSince) |
||
| 220 | { |
||
| 221 | $this->MemberSince = $MemberSince->format(\DateTime::ATOM); |
||
|
0 ignored issues
–
show
It seems like
$MemberSince->format(\DateTime::ATOM) of type string is incompatible with the declared type object<DateTime> of property $MemberSince.
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...
|
|||
| 222 | return $this; |
||
| 223 | } |
||
| 224 | |||
| 225 | /** |
||
| 226 | * @return boolean |
||
| 227 | */ |
||
| 228 | public function getIsActive() |
||
| 229 | { |
||
| 230 | return $this->IsActive; |
||
| 231 | } |
||
| 232 | |||
| 233 | /** |
||
| 234 | * @param boolean $IsActive |
||
| 235 | * @return \Gueststream\PMS\IQWare\API\cClubMember |
||
| 236 | */ |
||
| 237 | public function setIsActive($IsActive) |
||
| 238 | { |
||
| 239 | $this->IsActive = $IsActive; |
||
| 240 | return $this; |
||
| 241 | } |
||
| 242 | } |
||
| 243 |
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..