public function logout() {
        if ($this->isLoggedIn() === false) {
            throw new BadMethodCallException('Client is not logged-in.');
        }

        $this->request(
            'idoit.logout'
        );

        $this->session = null;

        return $this;
    }