for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace TgBotApi\BotApiBase\Helper;
use TgBotApi\BotApiBase\Exception\NormalizationException;
use TgBotApi\BotApiBase\Exception\ResponseException;
use TgBotApi\BotApiBase\Method\KickChatMemberMethod;
trait KickMethodTrait
{
/**
* @param $method
* @param $type
*
* @throws ResponseException
* @throws NormalizationException
* @return mixed
*/
abstract public function call($method, $type = null);
* @param KickChatMemberMethod $method
* @return bool
public function kickChatMember(KickChatMemberMethod $method): bool
return $this->call($method);
}