| 1 | <?php |
||
| 8 | class HangmanGameCreatedEvent extends HangmanBasicResultEvent |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | const NAME = 'hangman.created'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $word; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Constructor |
||
| 22 | * |
||
| 23 | * @param MiniGameId $gameId |
||
| 24 | * @param string $word |
||
| 25 | */ |
||
| 26 | 117 | public function __construct(MiniGameId $gameId, $word) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | 117 | public function getWord() |
|
| 39 | } |
||
| 40 |