public function setAuth($login, $secret, $type = TokenAuthorization::class)
    {
        switch ($type) {
            case TokenAuthorization::class:
                $auth = new TokenAuthorization($login, $secret);
                break;
            case BasicAuthorization::class:
                $auth = new BasicAuthorization($login, $secret);
                break;
            default:
                throw new ClientIncorrectAuthTypeException('Unknown authorization type');
        }

        $this->apiTransport->setAuth($auth);
    }
public function setAuth($login, $secret, $type = TokenAuthorization::class)
    {
        switch ($type) {
            case TokenAuthorization::class:
                $auth = new TokenAuthorization($login, $secret);
                break;
            case BasicAuthorization::class:
                $auth = new BasicAuthorization($login, $secret);
                break;
            default:
                throw new ClientIncorrectAuthTypeException('Unknown authorization type');
        }

        $this->apiTransport->setAuth($auth);
    }
@param string $login
@param string $secret
@param string $type

@throws ClientIncorrectAuthTypeException