1 | <?php |
||
11 | class HangmanPlayerWinEvent extends HangmanResultEvent implements AllPlayersResult, HangmanWon |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | const NAME = 'hangman.player.win'; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $word; |
||
22 | |||
23 | /** |
||
24 | * Constructor |
||
25 | * |
||
26 | * @param MiniGameId $gameId |
||
27 | * @param PlayerId $playerId |
||
28 | * @param array $playedLetters |
||
29 | * @param int $remainingLives |
||
30 | * @param string $word |
||
31 | */ |
||
32 | 15 | public function __construct( |
|
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | 3 | public function getWord() |
|
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 6 | public function getSolution() |
|
58 | } |
||
59 |