gregorybesson /
PlaygroundGame
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 PlaygroundGame\Options; |
||
| 4 | |||
| 5 | use Zend\Stdlib\AbstractOptions; |
||
| 6 | |||
| 7 | class ModuleOptions extends AbstractOptions implements GameEditOptionsInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Turn off strict options mode |
||
| 11 | */ |
||
| 12 | protected $__strictMode__ = false; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * drive path to game media files |
||
| 16 | */ |
||
| 17 | protected $media_path = 'public/media/game'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * url path to game media files |
||
| 21 | */ |
||
| 22 | protected $media_url = 'media/game'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * core_layout config |
||
| 26 | */ |
||
| 27 | protected $core_layout = array(); |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $emailFromAddress = ''; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | protected $defaultSubjectLine = ''; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var string |
||
| 41 | */ |
||
| 42 | protected $participationSubjectLine = ''; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | protected $shareCommentSubjectLine = ''; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @var string |
||
| 51 | */ |
||
| 52 | protected $sharePostSubjectLine = ''; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @var string |
||
| 56 | */ |
||
| 57 | protected $inviteToTeamSubjectLine = ''; |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @var string |
||
| 61 | * The field associated with the invitation request Id |
||
| 62 | */ |
||
| 63 | protected $onInvitationField = 'code'; |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @var string |
||
| 67 | */ |
||
| 68 | protected $gameEntityClass = 'PlaygroundGame\Entity\Game'; |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Set game entity class name |
||
| 72 | * |
||
| 73 | * @param $gameEntityClass |
||
| 74 | * |
||
| 75 | * @return ModuleOptions |
||
| 76 | */ |
||
| 77 | public function setGameEntityClass($gameEntityClass) |
||
| 78 | { |
||
| 79 | $this->gameEntityClass = $gameEntityClass; |
||
| 80 | |||
| 81 | return $this; |
||
| 82 | } |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @return string |
||
| 86 | */ |
||
| 87 | public function getGameEntityClass() |
||
| 88 | { |
||
| 89 | return $this->gameEntityClass; |
||
| 90 | } |
||
| 91 | |||
| 92 | /** |
||
| 93 | * Set media path |
||
| 94 | * |
||
| 95 | * @param string $media_path |
||
| 96 | * |
||
| 97 | * @return \PlaygroundGame\Options\ModuleOptions |
||
| 98 | */ |
||
| 99 | public function setMediaPath($media_path) |
||
| 100 | { |
||
| 101 | $this->media_path = $media_path; |
||
| 102 | |||
| 103 | return $this; |
||
| 104 | } |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @return string |
||
| 108 | */ |
||
| 109 | public function getMediaPath() |
||
| 110 | { |
||
| 111 | return $this->media_path; |
||
| 112 | } |
||
| 113 | |||
| 114 | /** |
||
| 115 | * |
||
| 116 | * @param string $media_url |
||
| 117 | * |
||
| 118 | * @return \PlaygroundGame\Options\ModuleOptions |
||
| 119 | */ |
||
| 120 | public function setMediaUrl($media_url) |
||
| 121 | { |
||
| 122 | $this->media_url = $media_url; |
||
| 123 | |||
| 124 | return $this; |
||
| 125 | } |
||
| 126 | |||
| 127 | /** |
||
| 128 | * @return string |
||
| 129 | */ |
||
| 130 | public function getMediaUrl() |
||
| 131 | { |
||
| 132 | return $this->media_url; |
||
| 133 | } |
||
| 134 | |||
| 135 | public function setEmailFromAddress($emailFromAddress) |
||
| 136 | { |
||
| 137 | $this->emailFromAddress = $emailFromAddress; |
||
| 138 | |||
| 139 | return $this; |
||
| 140 | } |
||
| 141 | |||
| 142 | public function getEmailFromAddress() |
||
| 143 | { |
||
| 144 | return $this->emailFromAddress; |
||
| 145 | } |
||
| 146 | |||
| 147 | public function setDefaultSubjectLine($defaultSubjectLine) |
||
| 148 | { |
||
| 149 | $this->defaultSubjectLine = $defaultSubjectLine; |
||
| 150 | |||
| 151 | return $this; |
||
| 152 | } |
||
| 153 | |||
| 154 | public function getDefaultSubjectLine() |
||
| 155 | { |
||
| 156 | return $this->defaultSubjectLine; |
||
| 157 | } |
||
| 158 | |||
| 159 | public function setParticipationSubjectLine($participationSubjectLine) |
||
| 160 | { |
||
| 161 | $this->participationSubjectLine = $participationSubjectLine; |
||
| 162 | |||
| 163 | return $this; |
||
| 164 | } |
||
| 165 | |||
| 166 | public function getParticipationSubjectLine() |
||
| 167 | { |
||
| 168 | return $this->participationSubjectLine; |
||
| 169 | } |
||
| 170 | |||
| 171 | public function setSharePostSubjectLine($sharePostSubjectLine) |
||
| 172 | { |
||
| 173 | $this->sharePostSubjectLine = $sharePostSubjectLine; |
||
| 174 | |||
| 175 | return $this; |
||
| 176 | } |
||
| 177 | |||
| 178 | public function getSharePostSubjectLine() |
||
| 179 | { |
||
| 180 | return $this->sharePostSubjectLine; |
||
| 181 | } |
||
| 182 | |||
| 183 | public function setShareCommentSubjectLine($shareCommentSubjectLine) |
||
| 184 | { |
||
| 185 | $this->shareCommentSubjectLine = $shareCommentSubjectLine; |
||
| 186 | |||
| 187 | return $this; |
||
| 188 | } |
||
| 189 | |||
| 190 | public function getShareCommentSubjectLine() |
||
| 191 | { |
||
| 192 | return $this->shareCommentSubjectLine; |
||
| 193 | } |
||
| 194 | |||
| 195 | public function setInviteToTeamSubjectLine($inviteToTeamSubjectLine) |
||
| 196 | { |
||
| 197 | $this->inviteToTeamSubjectLine = $inviteToTeamSubjectLine; |
||
| 198 | |||
| 199 | return $this; |
||
| 200 | } |
||
| 201 | |||
| 202 | public function getInviteToTeamSubjectLine() |
||
| 203 | { |
||
| 204 | return $this->inviteToTeamSubjectLine; |
||
| 205 | } |
||
| 206 | |||
| 207 | public function setOnInvitationField($onInvitationField) |
||
| 208 | { |
||
| 209 | $this->onInvitationField = $onInvitationField; |
||
| 210 | } |
||
| 211 | |||
| 212 | public function getOnInvitationField() |
||
| 213 | { |
||
| 214 | return $this->onInvitationField; |
||
| 215 | } |
||
| 216 | |||
| 217 | /** |
||
| 218 | * |
||
| 219 | * @param string $core_layout |
||
| 220 | * |
||
| 221 | * @return \PlaygroundGame\Options\ModuleOptions |
||
| 222 | */ |
||
| 223 | public function setCoreLayout($core_layout) |
||
| 224 | { |
||
| 225 | $this->core_layout = $core_layout; |
||
|
0 ignored issues
–
show
|
|||
| 226 | |||
| 227 | return $this; |
||
| 228 | } |
||
| 229 | |||
| 230 | /** |
||
| 231 | * @return string |
||
| 232 | */ |
||
| 233 | public function getCoreLayout() |
||
| 234 | { |
||
| 235 | return $this->core_layout; |
||
| 236 | } |
||
| 237 | } |
||
| 238 |
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..