| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class JoinChatByInviteLink extends TdFunction |
||
| 15 | { |
||
| 16 | public const TYPE_NAME = 'joinChatByInviteLink'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Invite link to import; should begin with "https://t.me/joinchat/", "https://telegram.me/joinchat/", or "https://telegram.dog/joinchat/". |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected string $inviteLink; |
||
| 24 | |||
| 25 | public function __construct(string $inviteLink) |
||
| 26 | { |
||
| 27 | $this->inviteLink = $inviteLink; |
||
| 28 | } |
||
| 29 | |||
| 30 | public static function fromArray(array $array): JoinChatByInviteLink |
||
| 31 | { |
||
| 32 | return new static( |
||
| 33 | $array['invite_link'], |
||
| 34 | ); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function typeSerialize(): array |
||
| 42 | ]; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getInviteLink(): string |
||
| 48 | } |
||
| 49 | } |
||
| 50 |