| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class UpdateMessageLiveLocationViewed extends Update |
||
| 15 | { |
||
| 16 | public const TYPE_NAME = 'updateMessageLiveLocationViewed'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Identifier of the chat with the live location message. |
||
| 20 | */ |
||
| 21 | protected int $chatId; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Identifier of the message with live location. |
||
| 25 | */ |
||
| 26 | protected int $messageId; |
||
| 27 | |||
| 28 | public function __construct(int $chatId, int $messageId) |
||
| 29 | { |
||
| 30 | parent::__construct(); |
||
| 31 | |||
| 32 | $this->chatId = $chatId; |
||
| 33 | $this->messageId = $messageId; |
||
| 34 | } |
||
| 35 | |||
| 36 | public static function fromArray(array $array): UpdateMessageLiveLocationViewed |
||
| 37 | { |
||
| 38 | return new static( |
||
| 39 | $array['chat_id'], |
||
| 40 | $array['message_id'], |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function typeSerialize(): array |
||
| 50 | ]; |
||
| 51 | } |
||
| 52 | |||
| 53 | public function getChatId(): int |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getMessageId(): int |
||
| 61 | } |
||
| 62 | } |
||
| 63 |