| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class SendGameMethod implements SendMethodAliasInterface |
||
| 18 | { |
||
| 19 | use FillFromArrayTrait; |
||
| 20 | use SendToChatVariablesTrait; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Short name of the game, serves as the unique identifier for the game. Set up your games via Botfather. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | public $gameShortName; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Optional. A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown. |
||
| 31 | * If not empty, the first button must launch the game. |
||
| 32 | * |
||
| 33 | * @var InlineKeyboardMarkupType|null |
||
| 34 | */ |
||
| 35 | public $replyMarkup; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
| 39 | */ |
||
| 40 | 1 | public static function create(int $chatId, string $gameShortName, array $data = null): SendGameMethod |
|
| 52 |