| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class KickChatMemberMethod implements KickMethodAliasInterface |
||
| 18 | { |
||
| 19 | use FillFromArrayTrait; |
||
| 20 | use ChatIdVariableTrait; |
||
| 21 | use UserIdVariableTrait; |
||
| 22 | /** |
||
| 23 | * Optional. Date when the user will be unbanned, \DateTimeInterface. |
||
| 24 | * If user is banned for more than 366 days or less than 30 seconds |
||
| 25 | * from the current time they are considered to be banned forever. |
||
| 26 | * |
||
| 27 | * @var \DateTimeInterface|null |
||
| 28 | */ |
||
| 29 | public $untilDate; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * KickChatMemberMethod constructor. |
||
| 33 | * |
||
| 34 | * @param int|string $chatId |
||
| 35 | * @param int $userId |
||
| 36 | * @param array|null $data |
||
| 37 | * |
||
| 38 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
| 39 | * |
||
| 40 | * @return KickChatMemberMethod |
||
| 41 | */ |
||
| 42 | 1 | public static function create($chatId, int $userId, array $data = null): KickChatMemberMethod |
|
| 54 |