1 | <?php |
||
11 | class HangmanGameLostEvent extends HangmanBasicResultEvent implements AllPlayersResult, GameLost |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | const NAME = 'hangman.lost'; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $word; |
||
22 | |||
23 | /** |
||
24 | * Constructor |
||
25 | * |
||
26 | * @param MiniGameId $gameId |
||
27 | * @param PlayerId $playerId |
||
28 | * @param string $word |
||
29 | */ |
||
30 | 6 | public function __construct(MiniGameId $gameId, PlayerId $playerId, $word) |
|
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | 3 | public function getWord() |
|
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | 3 | public function getSolution() |
|
51 | } |
||
52 |