| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class SetChatDescriptionMethod |
||
| 16 | { |
||
| 17 | use FillFromArrayTrait; |
||
| 18 | use ChatIdVariableTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Optional. New chat description, 0-255 characters. |
||
| 22 | * |
||
| 23 | * @var string|null |
||
| 24 | */ |
||
| 25 | public $description; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param int|string $chatId |
||
| 29 | * @param array|null $data |
||
| 30 | * |
||
| 31 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
| 32 | * |
||
| 33 | * @return SetChatDescriptionMethod |
||
| 34 | */ |
||
| 35 | 1 | public static function create($chatId, array $data = null): SetChatDescriptionMethod |
|
| 46 |