| 1 | <?php |
||
| 9 | abstract class HangmanResultEvent extends HangmanBasicResultEvent implements HangmanGameResult |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string[] |
||
| 13 | */ |
||
| 14 | protected $playedLetters; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var int |
||
| 18 | */ |
||
| 19 | protected $remainingLives; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Constructor |
||
| 23 | * |
||
| 24 | * @param string $name |
||
| 25 | * @param MiniGameId $gameId |
||
| 26 | * @param PlayerId $playerId |
||
| 27 | * @param string[] $playedLetters |
||
| 28 | * @param int $remainingLives |
||
| 29 | */ |
||
| 30 | 69 | public function __construct($name, MiniGameId $gameId, PlayerId $playerId, array $playedLetters, $remainingLives) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | 30 | public function getPlayedLetters() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return int |
||
| 47 | */ |
||
| 48 | 33 | public function getRemainingLives() |
|
| 52 | } |
||
| 53 |