| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait Chat |
||
| 10 | { |
||
| 11 | use BaseChat; |
||
| 12 | |||
| 13 | public function leave(): PromiseInterface |
||
| 14 | { |
||
| 15 | return $this->api->leaveChat($this->id); |
||
| 16 | } |
||
| 17 | |||
| 18 | public function kickMember(int $userId, ?int $untilDate = null, ?bool $revokeMessages = null): PromiseInterface |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function unbanMember(int $userId, ?bool $onlyIfBanned = null): PromiseInterface |
||
| 31 | } |
||
| 32 | |||
| 33 | public function restrictMember( |
||
| 45 | } |