| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | class GetChatMenuButtonMethod implements MethodInterface |
||
| 19 | { |
||
| 20 | use FillFromArrayTrait; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Optional. Unique identifier for the target private chat. If not specified, default bot's menu button will be returned. |
||
| 24 | * |
||
| 25 | * @var int|null |
||
| 26 | */ |
||
| 27 | public $chatId; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * GetChatMenuButtonMethod constructor. |
||
| 31 | * |
||
| 32 | * @param array|null $data |
||
| 33 | * |
||
| 34 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
| 35 | * |
||
| 36 | * @return GetChatMenuButtonMethod |
||
| 37 | */ |
||
| 38 | public static function create(array $data = null): GetChatMenuButtonMethod |
||
| 48 |