@@ 13-67 (lines=55) @@ | ||
10 | ||
11 | namespace Teebot\Api\Method; |
|
12 | ||
13 | class KickChatMember extends AbstractMethod |
|
14 | { |
|
15 | const NAME = 'kickChatMember'; |
|
16 | ||
17 | const RETURN_ENTITY = null; |
|
18 | ||
19 | protected $chat_id; |
|
20 | ||
21 | protected $user_id; |
|
22 | ||
23 | protected $supportedProperties = [ |
|
24 | 'chat_id' => true, |
|
25 | 'user_id' => true |
|
26 | ]; |
|
27 | ||
28 | /** |
|
29 | * @return mixed |
|
30 | */ |
|
31 | public function getChatId() |
|
32 | { |
|
33 | return $this->chat_id; |
|
34 | } |
|
35 | ||
36 | /** |
|
37 | * @param mixed $chat_id |
|
38 | * |
|
39 | * @return $this |
|
40 | */ |
|
41 | public function setChatId($chat_id) |
|
42 | { |
|
43 | $this->chat_id = $chat_id; |
|
44 | ||
45 | return $this; |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * @return mixed |
|
50 | */ |
|
51 | public function getUserId() |
|
52 | { |
|
53 | return $this->user_id; |
|
54 | } |
|
55 | ||
56 | /** |
|
57 | * @param mixed $user_id |
|
58 | * |
|
59 | * @return $this |
|
60 | */ |
|
61 | public function setUserId($user_id) |
|
62 | { |
|
63 | $this->user_id = $user_id; |
|
64 | ||
65 | return $this; |
|
66 | } |
|
67 | } |
|
68 |
@@ 13-67 (lines=55) @@ | ||
10 | ||
11 | namespace Teebot\Api\Method; |
|
12 | ||
13 | class UnbanChatMember extends AbstractMethod |
|
14 | { |
|
15 | const NAME = 'unbanChatMember'; |
|
16 | ||
17 | const RETURN_ENTITY = null; |
|
18 | ||
19 | protected $chat_id; |
|
20 | ||
21 | protected $user_id; |
|
22 | ||
23 | protected $supportedProperties = [ |
|
24 | 'chat_id' => true, |
|
25 | 'user_id' => true |
|
26 | ]; |
|
27 | ||
28 | /** |
|
29 | * @return mixed |
|
30 | */ |
|
31 | public function getChatId() |
|
32 | { |
|
33 | return $this->chat_id; |
|
34 | } |
|
35 | ||
36 | /** |
|
37 | * @param mixed $chat_id |
|
38 | * |
|
39 | * @return $this |
|
40 | */ |
|
41 | public function setChatId($chat_id) |
|
42 | { |
|
43 | $this->chat_id = $chat_id; |
|
44 | ||
45 | return $this; |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * @return mixed |
|
50 | */ |
|
51 | public function getUserId() |
|
52 | { |
|
53 | return $this->user_id; |
|
54 | } |
|
55 | ||
56 | /** |
|
57 | * @param mixed $user_id |
|
58 | * |
|
59 | * @return $this |
|
60 | */ |
|
61 | public function setUserId($user_id) |
|
62 | { |
|
63 | $this->user_id = $user_id; |
|
64 | ||
65 | return $this; |
|
66 | } |
|
67 | } |
|
68 |