@@ -137,6 +137,9 @@ discard block |
||
| 137 | 137 | } |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @param string $type |
|
| 142 | + */ |
|
| 140 | 143 | public function sortHand($type) |
| 141 | 144 | { |
| 142 | 145 | // set initial value to 0, increment with ++ when a hand fulfills |
@@ -175,6 +178,9 @@ discard block |
||
| 175 | 178 | // END OF SORT |
| 176 | 179 | } |
| 177 | 180 | |
| 181 | + /** |
|
| 182 | + * @param string $type |
|
| 183 | + */ |
|
| 178 | 184 | public function scoreSameSuit($type) |
| 179 | 185 | { |
| 180 | 186 | if ($this->notScoredYet == true) { |
@@ -223,6 +229,9 @@ discard block |
||
| 223 | 229 | } |
| 224 | 230 | } |
| 225 | 231 | |
| 232 | + /** |
|
| 233 | + * @param string $type |
|
| 234 | + */ |
|
| 226 | 235 | public function fourOfAKind($type): void |
| 227 | 236 | { |
| 228 | 237 | if ($this->notScoredYet == true) { |
@@ -234,6 +243,10 @@ discard block |
||
| 234 | 243 | } |
| 235 | 244 | } |
| 236 | 245 | } |
| 246 | + |
|
| 247 | + /** |
|
| 248 | + * @param string $type |
|
| 249 | + */ |
|
| 237 | 250 | public function fullHouse($type): void |
| 238 | 251 | { |
| 239 | 252 | if ($this->notScoredYet == true) { |
@@ -246,6 +259,9 @@ discard block |
||
| 246 | 259 | } |
| 247 | 260 | } |
| 248 | 261 | |
| 262 | + /** |
|
| 263 | + * @param string $type |
|
| 264 | + */ |
|
| 249 | 265 | public function threeOfAKind($type): void |
| 250 | 266 | { |
| 251 | 267 | if ($this->notScoredYet == true) { |
@@ -258,6 +274,9 @@ discard block |
||
| 258 | 274 | } |
| 259 | 275 | } |
| 260 | 276 | |
| 277 | + /** |
|
| 278 | + * @param string $type |
|
| 279 | + */ |
|
| 261 | 280 | public function twoPairsOrPair($type): void |
| 262 | 281 | { |
| 263 | 282 | if ($this->notScoredYet == true) { |
@@ -286,6 +305,9 @@ discard block |
||
| 286 | 305 | } |
| 287 | 306 | } |
| 288 | 307 | |
| 308 | + /** |
|
| 309 | + * @param string $type |
|
| 310 | + */ |
|
| 289 | 311 | public function straightOrNothing($type): void |
| 290 | 312 | { |
| 291 | 313 | if ($this->notScoredYet == true) { |