1 | <?php |
||
10 | class HangmanPlayerOptions extends AbstractPlayerOptions implements PlayerOptions |
||
11 | { |
||
12 | /** |
||
13 | * @var int |
||
14 | */ |
||
15 | private $lives; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $externalReference; |
||
21 | |||
22 | /** |
||
23 | * Constructor. |
||
24 | */ |
||
25 | 81 | public function __construct() |
|
26 | { |
||
27 | 81 | } |
|
28 | |||
29 | /** |
||
30 | * @return int |
||
31 | */ |
||
32 | 66 | public function getLives() |
|
33 | { |
||
34 | 66 | return $this->lives; |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | 66 | public function getExternalReference() |
|
44 | |||
45 | /** |
||
46 | * Constructor |
||
47 | * |
||
48 | * @param PlayerId $playerId |
||
49 | * @param MiniGameId $gameId |
||
50 | * @param string $name |
||
51 | * @param int $lives |
||
52 | * @param string $externalReference |
||
53 | * |
||
54 | * @return HangmanPlayerOptions |
||
55 | */ |
||
56 | 81 | public static function create(PlayerId $playerId, MiniGameId $gameId, $name, $lives, $externalReference = null) |
|
66 | } |
||
67 |