-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathBlockUser.php
More file actions
49 lines (40 loc) · 811 Bytes
/
Copy pathBlockUser.php
File metadata and controls
49 lines (40 loc) · 811 Bytes
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
<?php
/**
* This phpFile is auto-generated.
*/
declare(strict_types=1);
namespace AurimasNiekis\TdLibSchema;
/**
* Adds a user to the blacklist.
*/
class BlockUser extends TdFunction
{
public const TYPE_NAME = 'blockUser';
/**
* User identifier.
*
* @var int
*/
protected int $userId;
public function __construct(int $userId)
{
$this->userId = $userId;
}
public static function fromArray(array $array): BlockUser
{
return new static(
$array['user_id'],
);
}
public function typeSerialize(): array
{
return [
'@type' => static::TYPE_NAME,
'user_id' => $this->userId,
];
}
public function getUserId(): int
{
return $this->userId;
}
}