-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAuthorizationStateWaitEncryptionKey.php
More file actions
51 lines (41 loc) · 1.02 KB
/
Copy pathAuthorizationStateWaitEncryptionKey.php
File metadata and controls
51 lines (41 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* This phpFile is auto-generated.
*/
declare(strict_types=1);
namespace AurimasNiekis\TdLibSchema;
/**
* TDLib needs an encryption key to decrypt the local database.
*/
class AuthorizationStateWaitEncryptionKey extends AuthorizationState
{
public const TYPE_NAME = 'authorizationStateWaitEncryptionKey';
/**
* True, if the database is currently encrypted.
*
* @var bool
*/
protected bool $isEncrypted;
public function __construct(bool $isEncrypted)
{
parent::__construct();
$this->isEncrypted = $isEncrypted;
}
public static function fromArray(array $array): AuthorizationStateWaitEncryptionKey
{
return new static(
$array['is_encrypted'],
);
}
public function typeSerialize(): array
{
return [
'@type' => static::TYPE_NAME,
'is_encrypted' => $this->isEncrypted,
];
}
public function getIsEncrypted(): bool
{
return $this->isEncrypted;
}
}