1 | <?php |
||
10 | class CreateGameCommand extends AbstractPlayerCommand |
||
11 | { |
||
12 | const NAME = 'GAME.CREATE'; |
||
13 | |||
14 | /** |
||
15 | * @var GameOptions |
||
16 | */ |
||
17 | private $options; |
||
18 | |||
19 | /** |
||
20 | * Construct. |
||
21 | */ |
||
22 | 9 | public function __construct() |
|
25 | |||
26 | /** |
||
27 | * Returns the command name |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | 3 | public function getCommandName() |
|
35 | |||
36 | /** |
||
37 | * @return GameOptions |
||
38 | */ |
||
39 | 9 | public function getOptions() |
|
43 | |||
44 | /** |
||
45 | * Construct |
||
46 | * |
||
47 | * @param MiniGameId $id |
||
48 | * @param PlayerId $playerId |
||
49 | * @param GameOptions $options |
||
50 | * @param Context $origin |
||
51 | * |
||
52 | * @return CreateGameCommand |
||
53 | */ |
||
54 | 9 | public static function create( |
|
67 | } |
||
68 |