| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class UnpinChatMessageMethod implements UnpinMethodAliasInterface |
||
| 17 | { |
||
| 18 | use FillFromArrayTrait; |
||
| 19 | use ChatIdVariableTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Optional Identifier of a message to unpin. If not specified, |
||
| 23 | * the most recent pinned message (by sending date) will be unpinned. |
||
| 24 | * |
||
| 25 | * @var int|null |
||
| 26 | */ |
||
| 27 | public $messageId; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param int|string $chatId |
||
| 31 | * |
||
| 32 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
| 33 | */ |
||
| 34 | 1 | public static function create($chatId, array $data = null): UnpinChatMessageMethod |
|
| 46 |