| 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 | public function __construct() |
||
| 25 | |||
| 26 | /** |
||
| 27 | 3 | * Returns the command name |
|
| 28 | * |
||
| 29 | 3 | * @return string |
|
| 30 | */ |
||
| 31 | public function getCommandName() |
||
| 35 | |||
| 36 | 3 | /** |
|
| 37 | * @return GameOptions |
||
| 38 | 3 | */ |
|
| 39 | public function getOptions() |
||
| 43 | |||
| 44 | 3 | /** |
|
| 45 | * Construct |
||
| 46 | 3 | * |
|
| 47 | * @param MiniGameId $id |
||
| 48 | * @param PlayerId $playerId |
||
| 49 | * @param GameOptions $options |
||
| 50 | * @param Context $origin |
||
| 51 | * |
||
| 52 | 3 | * @return CreateGameCommand |
|
| 53 | */ |
||
| 54 | 3 | public static function create( |
|
| 67 | } |
||
| 68 |