| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class UnbanChatMemberMethod implements UnbanMethodAliasInterface |
||
| 18 | { |
||
| 19 | use FillFromArrayTrait; |
||
| 20 | use ChatIdVariableTrait; |
||
| 21 | use UserIdVariableTrait; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Do nothing if the user is not banned. |
||
| 25 | * |
||
| 26 | * @var bool|null |
||
| 27 | */ |
||
| 28 | public $onlyIfBanned; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param int|string $chatId |
||
| 32 | * |
||
| 33 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
| 34 | */ |
||
| 35 | 1 | public static function create($chatId, int $userId, array $data = null): UnbanChatMemberMethod |
|
| 48 |