1 | <?php |
||
10 | class HangmanBadLetterProposedEvent extends HangmanResultEvent implements HangmanBadProposition |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | const NAME = 'hangman.letter.bad'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $letter; |
||
21 | |||
22 | /** |
||
23 | * @var int |
||
24 | */ |
||
25 | private $livesLost; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $wordSoFar; |
||
31 | |||
32 | /** |
||
33 | * Constructor |
||
34 | * |
||
35 | * @param MiniGameId $gameId |
||
36 | * @param PlayerId $playerId |
||
37 | * @param string $letter |
||
38 | * @param array $playedLetters |
||
39 | * @param int $livesLost |
||
40 | * @param int $remainingLives |
||
41 | * @param string $wordSoFar |
||
42 | */ |
||
43 | 21 | public function __construct( |
|
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | 18 | public function getLetter() |
|
65 | |||
66 | /** |
||
67 | * @return int |
||
68 | */ |
||
69 | 18 | public function getLivesLost() |
|
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | 3 | public function getWordSoFar() |
|
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | 6 | public function getFeedback() |
|
89 | } |
||
90 |