1 | <?php |
||
9 | class HangmanPlayerCreatedEvent extends HangmanBasicResultEvent |
||
|
|||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | const NAME = 'hangman.player.created'; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $playerName; |
||
20 | |||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | private $lives; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $externalReference; |
||
30 | |||
31 | /** |
||
32 | * Constructor |
||
33 | * |
||
34 | * @param MiniGameId $gameId |
||
35 | * @param PlayerId $playerId |
||
36 | * @param string $playerName |
||
37 | * @param int $lives |
||
38 | * @param string $externalReference |
||
39 | */ |
||
40 | 78 | public function __construct(MiniGameId $gameId, PlayerId $playerId, $playerName, $lives, $externalReference) |
|
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | 78 | public function getPlayerName() |
|
55 | |||
56 | /** |
||
57 | * @return int |
||
58 | */ |
||
59 | 78 | public function getLives() |
|
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | 3 | public function getExternalReference() |
|
71 | } |
||
72 |