| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class SetChatTitle extends TdFunction |
||
| 15 | { |
||
| 16 | public const TYPE_NAME = 'setChatTitle'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Chat identifier. |
||
| 20 | */ |
||
| 21 | protected int $chatId; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * New title of the chat; 1-128 characters. |
||
| 25 | */ |
||
| 26 | protected string $title; |
||
| 27 | |||
| 28 | public function __construct(int $chatId, string $title) |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function fromArray(array $array): SetChatTitle |
||
| 35 | { |
||
| 36 | return new static( |
||
| 37 | $array['chat_id'], |
||
| 38 | $array['title'], |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function typeSerialize(): array |
||
| 48 | ]; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getChatId(): int |
||
| 54 | } |
||
| 55 | |||
| 56 | public function getTitle(): string |
||
| 59 | } |
||
| 60 | } |
||
| 61 |