| Total Complexity | 2 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class SendGameMethod |
||
| 16 | { |
||
| 17 | use FillFromArrayTrait; |
||
| 18 | use ReplyMarkupVariableTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Unique identifier for the target chat. |
||
| 22 | * |
||
| 23 | * @var int |
||
| 24 | */ |
||
| 25 | public $chatId; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Short name of the game, serves as the unique identifier for the game. Set up your games via Botfather. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | public $gameShortName; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Sends the message silently. Users will receive a notification with no sound. |
||
| 36 | * |
||
| 37 | * @var bool|null |
||
| 38 | */ |
||
| 39 | public $disableNotification; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * If the message is a reply, ID of the original message. |
||
| 43 | * |
||
| 44 | * @var int|null |
||
| 45 | */ |
||
| 46 | public $replyToMessageId; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * SendGameType constructor. |
||
| 50 | * |
||
| 51 | * @param int $chatId |
||
| 52 | * @param string $gameShortName |
||
| 53 | * @param array|null $data |
||
| 54 | * |
||
| 55 | * @throws \Greenplugin\TelegramBot\Exception\BadArgumentException |
||
| 56 | */ |
||
| 57 | public function __construct(int $chatId, string $gameShortName, array $data = null) |
||
| 66 |