| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class SendChatAction extends TdFunction |
||
| 15 | { |
||
| 16 | public const TYPE_NAME = 'sendChatAction'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Chat identifier. |
||
| 20 | */ |
||
| 21 | protected int $chatId; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The action description. |
||
| 25 | */ |
||
| 26 | protected ChatAction $action; |
||
| 27 | |||
| 28 | public function __construct(int $chatId, ChatAction $action) |
||
| 29 | { |
||
| 30 | $this->chatId = $chatId; |
||
| 31 | $this->action = $action; |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function fromArray(array $array): SendChatAction |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function typeSerialize(): array |
||
| 48 | ]; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getChatId(): int |
||
| 52 | { |
||
| 53 | return $this->chatId; |
||
| 54 | } |
||
| 55 | |||
| 56 | public function getAction(): ChatAction |
||
| 59 | } |
||
| 60 | } |
||
| 61 |