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