| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class UpdateSecretChat extends Update |
||
| 15 | { |
||
| 16 | public const TYPE_NAME = 'updateSecretChat'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * New data about the secret chat. |
||
| 20 | * |
||
| 21 | * @var SecretChat |
||
| 22 | */ |
||
| 23 | protected SecretChat $secretChat; |
||
| 24 | |||
| 25 | public function __construct(SecretChat $secretChat) |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function fromArray(array $array): UpdateSecretChat |
||
| 33 | { |
||
| 34 | return new static( |
||
| 35 | TdSchemaRegistry::fromArray($array['secret_chat']), |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function typeSerialize(): array |
||
| 44 | ]; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getSecretChat(): SecretChat |
||
| 50 | } |
||
| 51 | } |
||
| 52 |